* caching added for eslint for packages
* project definition added for scripts project and test:eslint target
* adding task caching for test:types
* adding appropriate dependsOn and outputs to test:types
* updating test:react:17
* running many on test:ci for nx scripts
* adding output to test:types
* adding root project and format task
* adding caching for build and test:build
* fixing frozen lockfile error in ci
* fixing pnpm build to include the build of the eslin-plugin
* adding build for svelte-query as well
* parallelizing bundlewatch and validate pacakges script
* cleaning up a bit more
* moving build config to the root project
* feat(devtools): enable setting loading/error via devtools
* Some cleanup
* refactor: use flex-gap to align buttons
* refactor: fix linter and dropdown reset
* refactor: operate directly on activeQuery
* Change buttons to toggle states
* Sneak some queryState into meta
* Added test for error and loading
* Fix lint
* Fix prettier formatting
* chore: releases should run on alpha/beta as well
* chore: extract package validation to an extra script (#5039)
* chore: extract package validation to an extra script
and run it during CI
* chore: add missing `build:types` script to solid-query
* docs: update link for v2 docs (#5044)
* docs: update link for v2 docs
* Update README.md
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* release: v4.24.12
* fix(react-query-devtools): do not stretch query status label (#5063)
Do not stretch query status label (fresh, fetching, paused, stale, inactive) shown on Query Details view.
* release: v4.24.13
* fix(react-query-devtools): add 'use client' directive to disable SSR (#5041)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* release: v4.24.14
* feat(core): re-export matchQuery from utils (#5070)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* release: v4.25.0
* feat(query-core): Add global onSettled callbacks for QueryCache and MutationCache (#5075)
* feat(query-core): Add global onSettled callbacks for QueryCache and MutationCache
* test: tests for query onSettled callback
* test: tests for mutation onSettled callback
* docs: onSettled callbacks
* release: v4.26.0
* fix(core): make sure mutations get updated options (#5085)
this fixes an issue around stale closures where callbacks are not updated, thus are called with wrong values in the closure
* release: v4.26.1
* fix(eslint-plugin): improve object property checks (#5079)
* fix(eslint-plugin): improve object property checks
* prettier
* release: v4.26.2
* docs: add adapter dropdown to issue template (#5108)
* docs(queries): rename `success` (#5110)
* chore: `test:lib` task-caching w/ Nx (#5116)
* adding quick caching test
* reverting workflow change
* updating pr yml to test nx speed
* fixing yml on property
* fixing yml on property
* fixing target name
* upping to running4 in parallel
* upping to running 5 in parallel
* upping to running 6 in parallel
* upping to running 7 in parallel
* upping to running 8 in parallel
* upping to running 9 in parallel
* upping to running 10 in parallel
* opting for --parallel=5
* cleaning up nx.json
* revert touching of ci.yml file
* reverting on property of pr.yml file
* updating root pacakge.json test:lib command
* fixing frozen lockfile error in ci
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* chore: fix missing dependencies (#5127)
* chore: include scripts directory in linting
and fix issues
* chore: add missing dependencies chalk and semver
* chore: turning off Nx daemon in CI (#5128)
* chore: downgrade chalk to v4 because v5 is ESM only (#5130)
see: https://stackoverflow.com/questions/70309135/chalk-error-err-require-esm-require-of-es-module
* fix(eslint-plugin): ignore internal properties (#5119)
* chore: resolve merge conflicts
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Abhijeet Singh <contact.abhijeetsingh@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: janinegygax <32389974+janinegygax@users.noreply.github.com>
Co-authored-by: Youssouf Oumar <63708012+yousoumar@users.noreply.github.com>
Co-authored-by: remolueoend <remolueoend@users.noreply.github.com>
Co-authored-by: Eliya Cohen <co.eliya2@gmail.com>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
Co-authored-by: Leon Fong <ooohmydawn@hotmail.com>
Co-authored-by: Zachary DeRose <zack@nrwl.io>
Co-authored-by: Zachary DeRose <zack.derose@gmail.com>
* adding quick caching test
* reverting workflow change
* updating pr yml to test nx speed
* fixing yml on property
* fixing yml on property
* fixing target name
* upping to running4 in parallel
* upping to running 5 in parallel
* upping to running 6 in parallel
* upping to running 7 in parallel
* upping to running 8 in parallel
* upping to running 9 in parallel
* upping to running 10 in parallel
* opting for --parallel=5
* cleaning up nx.json
* revert touching of ci.yml file
* reverting on property of pr.yml file
* updating root pacakge.json test:lib command
* fixing frozen lockfile error in ci
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Sort options (asc / desc, and sort function) were hidden when filter was set.
Sort options are now shown along with the filter, even when a filter is set.
Closes#4989
At the time of making this commit, React Router still does not have an
offical comparison page in their docs.
Reference: https://reactrouter.com/en/6.8.1
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* 🐛 Set fetchStatus to idle when dehydrating
* ✅ Add a test case for ensuring fetchStatus is idle
* ✅ Update tests
* 🚨 Fix lint warnings
* ✅ Update fetchStatus when hydrating
* :okay_hand: Review updates
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* perf(persist): subscriber calls persistQueryClientStore only on cache related events
* refactor(persist): extract NotifyEvent type shared between query and mutation cache
* refactor(persist): move cacheableEventTypes declaration outside the function
* test(persist): add test checking `persistClient` calls frequency
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* docs: example: algolia
* fix: remove empty line if desc is null
* fix: stale time value
* refactor: use vite and examples structure
* fix: remove deprecated doc files
* docs: add algolia example in the config.json
* fix: make sure pausedMutations always execute in serial
when resumePausedMutations is called multiple times, we are starting the second paused mutation even though the first one has not yet finished. This can happen when a focus event and an online event happen in short succession
* fix: always return the same Promise when resumePausedMutations is called
* fix: make sure every call to resumePausedMutations is evaluated
mutation.continue() needs to immediately resolve back if we didn't really continue so that consecutive calls to resumePausedMutations can be appended to the promise chain
* fix: types