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

Project description #1

Open
abrcdf1023 opened this issue Dec 23, 2023 · 0 comments
Open

Project description #1

abrcdf1023 opened this issue Dec 23, 2023 · 0 comments

Comments

@abrcdf1023
Copy link
Owner

abrcdf1023 commented Dec 23, 2023

Summary

Not use redux or Context API and but use external cache to implement a react modal hook for better performance and to learn how swr.js implement it's library.

  1. Redux is not recommend to use non-Serializable Values and therefore we use context API. Read This for more detail
  2. Context API has a drawback when pass props to hook will cause render even the hook doesn't accept the state. Therefore we use external cache to avoid it. Read This for more detail

Basic example

Detailed design

Drawbacks

Alternatives

Adoption strategy

How we teach this

Unresolved questions

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