-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revalidateOnMount flag that disable automatic revalidation on mount (#…
…225) * Added autoLoad flag which defaults to true and disable automatic revalidation on mount * Fixed config usage * Added test coverage * Update src/use-swr.ts Co-Authored-By: Shu Ding <ds303077135@gmail.com> * Update test/use-swr.test.tsx Co-Authored-By: Shu Ding <ds303077135@gmail.com> * Renamed option to revalidateInitialData, updated documentation README to explain usage * Update src/use-swr.ts Co-Authored-By: Sergio Xalambrí <hello@sergiodxa.com> * Renamed config, fixed source, docs and tests * Changed revalidateOnMount to a 3-state flag * removed example from readme Co-authored-by: Shu Ding <ds303077135@gmail.com> Co-authored-by: Sergio Xalambrí <hello@sergiodxa.com>
- Loading branch information
1 parent
40914f1
commit cd095dd
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters