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 configuration to skip random sha for unique ids #1114

Closed
justin808 opened this issue Jul 17, 2018 · 1 comment
Closed

Add configuration to skip random sha for unique ids #1114

justin808 opened this issue Jul 17, 2018 · 1 comment

Comments

@justin808
Copy link
Member

justin808 commented Jul 17, 2018

Most times, we don't need to worry about the unique ids in the react on rails components.

We can add a global setting:

config.skip_random_unique_ids = true

if true, then the unique id is 'react-on-rails-<component_name>'.

This saves the need to optionally set the id as a property when react_component is called supposing we don't want get the random shas.

@justin808
Copy link
Member Author

Fixed in #1121

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