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

bug: add default staletime, setOptions when options change in the optionsAtom #59

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

kalijonn
Copy link
Collaborator

fixes #58

code cleanup: move setOptions to optionsAtom. this would be triggered only if there's an observer in cache. if not, a new observer has to be created with the new options, no need to setOptions here.

Copy link

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 4044c8c:

Sandbox Source
React Configuration
React TypeScript Configuration

@kalijonn kalijonn merged commit fa4aee6 into main Dec 23, 2023
3 checks passed
@kalijonn kalijonn deleted the kj/ensure-staletime branch December 23, 2023 13:41
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.

no stale time causes queryFn to run twice in Suspense atoms
1 participant