Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure config is per instance #1522

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

lucasnetau
Copy link
Collaborator

Previously config was a global const shared between formBuilder instances. Defaults and config set in the last instance would override all previous instance. For the most this was not noticed because the per instance opts object is passed to controls but helpers and some callbacks like onAddOption were accessed via the global const config.

All existing tests pass.

Copy link
Owner

@kevinchappell kevinchappell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huge win for multiple instances with different configs 🎉

@kevinchappell kevinchappell merged commit 4eeaee8 into kevinchappell:master Mar 1, 2024
1 check passed
Copy link

github-actions bot commented Mar 1, 2024

🎉 This PR is included in version 3.19.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants