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

feat(scope): new implementation scoping atoms instead of store #5

Merged
merged 7 commits into from
Oct 23, 2023

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Oct 16, 2023

#2 is suboptimal because we need to list all derived atoms in atoms prop in ScopedProvider.

In #4, @yf-yang suggested to change the api so that derived atoms work flawlessly.

This PR is another take of mine. The API is unchanged, but the behavior is very different. The API is also changed slightly.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 16, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7a8b4b6:

Sandbox Source
React Configuration
React TypeScript Configuration

@dai-shi
Copy link
Member Author

dai-shi commented Oct 16, 2023

Wait, it doesn't seem to work as expected. 🤔

@dai-shi dai-shi marked this pull request as draft October 16, 2023 04:03
@yf-yang
Copy link
Collaborator

yf-yang commented Oct 16, 2023

I get your point, this implementation is elegant.

@dai-shi dai-shi mentioned this pull request Oct 16, 2023
@dai-shi dai-shi marked this pull request as ready for review October 23, 2023 13:55
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

Successfully merging this pull request may close these issues.

2 participants