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

created "on-insert" custom modifier; updated LocaleChooser #7919

Conversation

michaelchadwick
Copy link
Contributor

Refs ilios/ilios#5374

In order to fix the deprecated {{did-insert}} modifier, I created an {{on-insert}} custom modifier that just takes a callback, runs if valid, or performs a console.error if not.

I tested this on the <LocaleChooser> component, and it seems to work as expected. Can probably reuse this in other spots where we are doing a simple "did this thing load? if so, do this other thing" check.

@michaelchadwick
Copy link
Contributor Author

Not sure if this was the intended "fix" for this problem, but I learned a bit, regardless.

@stopfstedt
Copy link
Member

superseded by #7922

@stopfstedt stopfstedt closed this Jul 5, 2024
@michaelchadwick michaelchadwick deleted the create-on-insert-custom-modifier branch July 5, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants