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

Add Controller#shouldLoad #448

Merged
merged 3 commits into from
Sep 22, 2021
Merged

Add Controller#shouldLoad #448

merged 3 commits into from
Sep 22, 2021

Conversation

dhh
Copy link
Member

@dhh dhh commented Sep 22, 2021

If you have controllers that are only relevant under certain environmental conditions – like user agent, native, global settings – and caching prevents you from removing them from the DOM, you can use shouldLoad to prevent them from being loaded regardless.

dhh added 3 commits September 22, 2021 18:01
If you have controllers that are only relevant under certain environmental conditions – like user agent, native, global settings – and caching prevents you from removing them from the DOM, you can use shouldLoad to prevent them from being loaded regardless.
@dhh dhh merged commit d0aa5d5 into main Sep 22, 2021
@dhh dhh deleted the should-load branch September 22, 2021 18:22
@dhh
Copy link
Member Author

dhh commented Sep 22, 2021

Closes #447.

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.

1 participant