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

Use stimulus router lookup table to decide if controller is registered #113

Merged
merged 1 commit into from
Dec 31, 2022

Conversation

ikanade
Copy link
Contributor

@ikanade ikanade commented Dec 31, 2022

Fixes issue #111 where lazy loading will attempt to load the external stimulus controller even if it was registered manually.

Improves on the fix from #97 where a new lookup table is created to check if a controller is registered or not. Stimulus already maintains this mapping here which we can use to determine if a controller was registered outside of stimulus-loading's scope and avoid re-registering it.

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

Successfully merging this pull request may close these issues.

2 participants