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 derived atom for symbol #144

Open
whoabuddy opened this issue Jun 1, 2022 · 0 comments
Open

Create derived atom for symbol #144

whoabuddy opened this issue Jun 1, 2022 · 0 comments
Labels
Enhancement New feature or request Good first issue Good for newcomers

Comments

@whoabuddy
Copy link

Is your feature request related to a problem? Please describe.

On a few different components there is a need to use the symbol throughout in headers, text, placeholders, etc.

The best pattern so far for this is to set a useMemo() hook that sets the symbol based on the current city selection or returns undefined.

Describe the solution you'd like

This feels like it could be generalized further as a derived atom, where the atom value follows the same pattern and can be used on any page where a symbol is needed.

@whoabuddy whoabuddy added Enhancement New feature or request Good first issue Good for newcomers labels Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant