mutations were not gc'd correctly when being reset. GC was invoked on unsubscribe, but reset disconnects the observer from the mutation in the cache and must thus also trigger a GC, because the observer is no longer watching the values of that mutation, and another mutate() call will create a new mutation anyway. Thus, the old mutation becomes orphaned when reset is called.
This change dramatically improves the performance of the queries table. The issue was that each Query Row would update on every queryCache update. Now, each QueryRow only updates when its particular query is updated.
RELEASE_ALL
* fix: make sure there is only one package.json after build
* fix: angular release
we cannot publish out of the build directory because pnpm doesn't see it as a workspace, so it won't replace workspace dependencies. To fix this, we:
- make the publish script point to the root directory (config.js)
- make sure our top-level package.json has types and exports and that they point to ./build
- make sure to remove the build/package.json after the build script ran
* chore: use rimraf
* chore: specify files to limit what we include
* chore: fix relative workspace dependencies
* chore: fix ci.json
* fix: package.json path
use isPlaceholderData instead of isPreviousData.
isPreviousData does not exist, and should be replaced with isPlaceholderData.
Also keepPreviousData: true does not also exist and should be replaced as written.
* feat(experimental_createPersister): support async serialization and storage of arbitrary values instead of strings
* fix: allow async serialization in async-storage-persister
useQueries, createQueries and useSuspenseQueries now return the correct data type if using the queryOptions helper with the select option.
fixes#6442
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* feat(codemod): implement codemod that replaces the `isLoading` usages with `isPending`
* fix(codemod): differentiate shorthand property usages in the codemod
* chore(codemod): add the `useMutation` hook as well to the "affected hooks" list
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix(codemod): extend codemod logic to transform usages when the second parameter is a function in the scope
* fix(codemod): handle the case when the second argument is a function definition
* chore(codemod): fix the `eslint` issue in the newly added example
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* chore: rename integration test
* test: add vite5 integration test for react
* chore: make test more stable
we don't really care about in-between renders as they might be batched
* Empty-Commit
* chore: add unique names
* chore: touching pr.yml to diagnose dte issues (#6445)
* touching pr.yml to diagnose dte issues
* fixing typo in pr.yml
---------
Co-authored-by: Zachary DeRose <zack.derose@gmail.com>
* fix(core): make sure queries initialize correctly
setQueries sets them, so it needs to be set before setResult, where we already access `this.queries`
* fix: initialize queries and options before calling setResult