forked from HoudiniGraphql/houdini
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cache policy (HoudiniGraphql#157)
* split up tests * fix imports * add utility for checking is selection is resolvable * better tests for existing data check * improved missing data test * add hook to example that clears cache for requests * cache should be disabled in the server hook to avoid any weird async issues * added hook generator * hook file is generated with init * only generate the hook for kit * disable the cache on the client * add cache policy to internal schema and artifacts * fetchPolicy uses artifact * first pass at cache check * implement rest of cache policies * add missing import * added test for happy path gc ticks * more gc tests * strengthen gc test * tick garbage collector after queries * fix closure over query variables when loading pages * add gc ticks back * removed unused log * only clean up a record if it was on a field being deleted * v0.10.6-alpha.0 * no need for hooks * rename bufferSize to cacheBufferSize * start documentation * document cacheBufferSize * clarify docs * set CacheOrNetwork as default policy * update snapshot * update one more snapshot * doc tweaks * fix mock adapter * import CachePolicy directly from types * srcPath isn't used any more * policy test shouldn't use default * default cache policy can be overwritten * add note about generating runtime before enum is defined for current users * grammar tweak * add cache sections to ToC * pass routeQuery full payload * updated snapshots * CacheAndQuery calls refetch * avoid double query from CacheAndNetwork if initial data was loaded over the network * avoid double query in non-route components with CacheAndNetwork * better non-route component refetch * start pagination refetch * first pass refetch for offsets * refetch reloads current page * remove refetch button from example * fix CacheAndNetwork onMount logic * update snapshot * onMount is called onLoad * NetworkOnly is default cache policy for now
- Loading branch information
1 parent
d5b0e07
commit d20825d
Showing
35 changed files
with
4,927 additions
and
3,637 deletions.
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
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
Oops, something went wrong.