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

Allow enableIf to receive a function that returns a plugin #875

Closed
dotansimha opened this issue Oct 25, 2021 · 0 comments · Fixed by #888
Closed

Allow enableIf to receive a function that returns a plugin #875

dotansimha opened this issue Oct 25, 2021 · 0 comments · Fixed by #888
Labels
kind/enhancement New feature or request

Comments

@dotansimha
Copy link
Collaborator

Allow something like:

enableIf(someBoolean, () => useSomething());

This is needed in order to have plugin lazy loaded, only if the boolean is true and avoid running the init flow of that plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant