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

Create a Strict Helpers mode #1976

Open
reeganviljoen opened this issue Jan 15, 2024 · 0 comments
Open

Create a Strict Helpers mode #1976

reeganviljoen opened this issue Jan 15, 2024 · 0 comments
Assignees

Comments

@reeganviljoen
Copy link
Collaborator

Feature request

I have been thinking about extending #1848 by adding a config that disables the use of helpers through helpers.<helper_name> and forces you to use use_helpers <helper_name> when you need helpers

A possible example could be:

config.view_component.use_strict_helpers = true

Motivation

This can help in developers that wish to make it easier to reason when using global state as is the intention with

https://github.com/ViewComponent/view_component/issues/1848
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant