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 memoization #2

Open
switz opened this issue May 20, 2023 · 2 comments
Open

Add memoization #2

switz opened this issue May 20, 2023 · 2 comments

Comments

@switz
Copy link
Owner

switz commented May 20, 2023

Would be nice to memoize the library, hopefully with minimal bundle size increase

@switz
Copy link
Owner Author

switz commented May 20, 2023

Memoizing via state keys seems like enough, but if flags isn't pure then it'll break. Maybe worth adding a deps array like useMemo.

@switz
Copy link
Owner Author

switz commented Feb 21, 2024

Would also be nice if the library was lazier in its evaluation rather than immediately parsing all derived objects.

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