Skip to content

Create a Strict Helpers mode #1976

@reeganviljoen

Description

@reeganviljoen

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions