RCroot
3ffe26e66b
fix: remove use of finally to prevent breaking react native fetch environments ( #1492 )
...
v3.3.5
* patch: remove use of finally to prevent breaking react native fetch environments
* fixed to pass tests
* fixed to pass test
2020-12-19 19:22:30 -07:00
Niek Bosch
2249abfaac
fix: make sure queries are retried after an error boundary reset ( #1489 )
v3.3.4
2020-12-19 09:09:22 -07:00
Niek Bosch
bffdc0e8dd
fix: prevent redundant renders ( #1487 )
v3.3.3
2020-12-19 03:29:23 -07:00
Tanner Linsley
e67b9e8314
docs: update sponsors
2020-12-18 17:07:04 -07:00
Tanner Linsley
874f73a820
Merge branch 'master' of https://github.com/tannerlinsley/react-query
2020-12-18 16:08:04 -07:00
Tanner Linsley
201bd51674
docs: update comparison title
2020-12-18 16:07:59 -07:00
Nelson Sousa
1e13e8ef31
docs: typo on react-native doc page ( #1481 )
2020-12-18 10:12:56 -07:00
Mohamed Ayoub Zahir
0b66a6306d
docs: fixed wrapp typo ( #1480 )
2020-12-18 10:12:37 -07:00
Niek Bosch
75a042580a
fix: make sure typed query fn contexts are accepted ( #1476 )
v3.3.2
2020-12-18 03:05:01 -07:00
Niek Bosch
861faf933b
fix: infer result data type from query fn return type instead of the reverse ( #1470 )
v3.3.1
2020-12-18 10:35:02 +01:00
Sachin Jani
d46e7b8865
docs: Removed data redundancy from features list. ( #1469 )
2020-12-17 14:24:53 -07:00
Kevin Sullivan
fcd9861b57
docs: Update Footer.js ( #1468 )
2020-12-17 14:23:57 -07:00
Rocío
d9abc0e9bc
docs(mutations): fix typo in example url ( #1465 )
...
Co-authored-by: rocioDEV <rocio@etereo.io>
2020-12-17 13:49:58 -07:00
Artur Sedlukha
cb88b4dfcb
docs: typo on ssr guides ( #1464 )
2020-12-17 08:39:59 -07:00
Tanner Linsley
2e189a5096
Merge branch 'master' of https://github.com/tannerlinsley/react-query
v3.3.0
2020-12-16 07:28:59 -07:00
Tanner Linsley
a11f3359a9
chore: fix publishing
2020-12-16 07:28:49 -07:00
Niek Bosch
260ec62983
fix: always render the latest observer state ( #1449 )
2020-12-16 04:00:26 -07:00
Tanner Linsley
976e19d601
Merge branch 'master' of https://github.com/tannerlinsley/react-query
2020-12-15 23:26:42 -07:00
Tanner Linsley
e4746f605c
docs: update sponsors
2020-12-15 23:26:33 -07:00
Asep Setyawan
e0c3c6d209
docs: typo on ssr & next.js guides ( #1448 )
2020-12-15 20:03:36 -07:00
Niek Bosch
14834e8214
feat: add imperative infinite query methods ( #1443 )
2020-12-15 18:49:09 -07:00
Niek Bosch
eb301fc908
fix: allow queries to be fetched with zero cache time and do not hydrate it ( #1442 )
2020-12-15 18:46:16 -07:00
Vaios Karampinis
73341ba5c4
docs: fix typo on successful mutation ( #1440 )
2020-12-15 11:14:33 -07:00
Pushpinder Singh
253fe24c61
docs: Fix typo ( #1430 )
2020-12-15 11:54:20 +01:00
Jonas Reitmann
28b7e70aaa
docs: Fix syntax error ( #1428 )
2020-12-15 03:23:30 -07:00
jfranty
48b3bc811a
docs: Fix typo in comparison.md ( #1427 )
2020-12-15 03:08:38 -07:00
Tanner Linsley
c2cec1b2e3
Update index.js
2020-12-14 18:41:38 -07:00
Bruno Bigras
94ab4a01f9
docs: add missing 'resolve-from' dep to examples/nextjs ( #1417 )
2020-12-14 16:49:13 -07:00
Tanner Linsley
b030e0e258
types(devtools): better types for devtools
...
Fixes #1406
2020-12-14 16:46:39 -07:00
Tanner Linsley
5e4ef153de
fix(devtools): Do not include devtools for production
2020-12-14 16:28:52 -07:00
Timo Vink
224125afe8
docs: Fix broken links ( #1419 )
...
Co-authored-by: Timo Vink <timo.vink@orbis.com>
2020-12-14 16:10:11 -07:00
Bruno Bigras
67ba20d39e
fix: remove unneeded bracket in README ( #1418 )
2020-12-14 22:53:12 +01:00
Matthew Mikolay
2608241d2a
docs: fix links ( #1414 )
2020-12-14 13:52:39 -07:00
Timo Vink
837c6fd313
docs: fix example in defaultQueryFn guide page ( #1416 )
2020-12-14 13:52:24 -07:00
Akhila Ariyachandra
033dffcfa9
docs: Fix typo ( #1405 )
2020-12-14 09:28:21 -07:00
Jelte Homminga
d04045827e
docs: typo Walkthough -> Walkthrough ( #1399 )
2020-12-14 09:27:50 -07:00
Tanner Linsley
5350fb9511
docs: fix white space
2020-12-14 09:11:05 -07:00
Michael Shtilerman
80cecef22c
fix(queryCache): stop deepIncludes exception comparing null ( #1403 )
...
typeof null === 'object'
Co-authored-by: mike-shtil <mike.shtil@gmail.com>
2020-12-14 08:41:48 -07:00
Dominik Dorfmeister
97ee73382b
docs: typescript example ( #1400 )
...
* (docs): add typescript example for optimistic updates
* (docs): add a Counter to show off the "select" option in TypeScript
* (docs): simplify TypeScript example
There is no need to add generics to userQuery now - it will be inferred correctly by the options
* return context from onMutate and define types on the `onMutate` function
* add missing select option to useQuery api reference
2020-12-14 06:32:49 -07:00
Tanner Linsley
3c1d2f0e77
docs: update installation
2020-12-14 00:07:55 -07:00
Tanner Linsley
8103d9675e
docs: update home page
2020-12-13 23:28:19 -07:00
Tanner Linsley
310c222b38
chore: update release config
2020-12-13 23:04:34 -07:00
Tanner Linsley
8aa4cb3e04
Update logo.sketch
2020-12-13 23:00:13 -07:00
Tanner Linsley
6618b1e6a8
docs: update example dependencies
2020-12-13 19:46:24 -07:00
Tanner Linsley
ac342e237a
v3 ( #1360 )
...
v3.2.0
* feat: initial v3 changes (#1079 )
* force website deploy
* docs: v3 updates
* docs: More documentation improvements
* docs: update query filters page
* docs: update query keys
* docs: more updates
* docs: updates
* feat: support multiple subscribers in observers
* docs: useMutation updates
* fix: mutate argument types and state update order
* fix: remove cache argument in cache callback
* fix: move optimistic fetching state into query observer
* fix: make sure default options can be overridden
* fix: type improvements
* feat: memoize select function result
* fix: only suspend when mounting
* docs: refactor to top level pages and multiple api reference pages per export
* test: add remove query test
* feat: add filters client isFetching and useIsFetching hook
* docs: temp move docs back to docs directory
* docs: solve conflicts
* docs: fix queryClient reference
* docs: reorg directory structure
* docs: fix queryClient reference
* docs: fix links
* docs: better phrasing
* docs: force docs build
* docs: update examples
* fix: use updatedAt to check for existing data
* feat: add structural sharing to select result
* refactor: update hashing terminology
* test: add ability to wrap react query updates with React act
* refactor: replace console with logger implementation
* docs: add migration page to navigation
* docs: update installation docs
* refactor: reduce file size
* docs: update examples
* fix: always compare query keys as arrays
* refactor: mark observers as private
* test: update timings in hydration cache time test
* docs: Update queries.md (#1134 )
* feat: split mutate into mutate and mutateAsync (#1130 )
* feat: split mutate into mutate and mutateAsync
* docs: Update docs/src/pages/guides/mutations.md
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
* feat: add bi-directional infinite query support (#1135 )
* refactor: reduce file size
* feat: revert to previous state on cancellation
* fix: wait for all queries to cancel
* docs: update cancellation docs
* build: force
* build: add beta build
* build: add beta build
* docs: update comparison
* fix: support infinite cache time when hydrating
* refactor: explicitly mark package side effects
* docs: update comparison
* docs: update comparison
* fix: remove excess exports
* feat: add support for default options when hydrating
* docs: fix links
* feat: add options to setQueryData
* fix: align notify terminology
* feat: Major semver bump
BREAKING CHANGE: Increment Major Version
* fix: always try to fetch if enabled
* feat: bump version
* fix: refetch should create new query when removed
* chore: do not publish beta until we figure this out
* make beta prerelease
* dry run releases
* fix: test dry run semantic release
* release beta releases for realzies
* test: add eslint rule
* docs(useQuery): change manual to enabled (#1167 )
* feat: move mutations into the core (#1162 )
* feat: tree shake infinite query and support manual updates
* docs: update comparison
* refactor: remove observer factory
* refactor: add subscribable
* refactor: move hasListeners
* refactor: optimize bundle
* fix: add status bools to use mutation result
* feat: api update
* fix: add defaults to UseMutationOptions type
* docs: add pages
* fix: cleanup
* refactor: use queryCache property directly
* docs: Add placeholder data guide
* docs: fix typo
* fix: keep previous query status when fetching
* fix: stop retry when observers unmount
* feat: add additional notify flags
* fix: only keep notify on stale option
* refactor: only batch react callbacks
* test: update timings
* refactor: also batch in suspense
* feat: add hydration support for mutations
* fix: remove query immediately if cacheTime is 0
* fix: prevent infinite fetch loop
* refactor: move refetch logic into observer
* fix: match query key correctly when setting defaults
* test: add query defaults test
* fix: re-add useMutation callback composition
* feat: use set defaults also for observers
* test: add enabled assertion
* feat: add ability to manually control the online and focus state
* docs: update onlineManager documentation
* feat: add discriminated unions for query results (#1247 )
* fix: only set state in listeners when provided
* docs: add testing page
* feat: add query function context (#1261 )
* feat: add errorUpdatedAt property
* fix: only trigger suspense when loading for the first time
* fix: make sure suspense is always triggered when loading a query
* fix: add ability to type the query key in the query function context
* refactor: make isDataEqual type more specific
* docs: update react native focus code
* fix: make sure to remove the correct query from cache
* test: remove only
* feat: add granular component re-render control
* fix: make sure component re-render when they should
* feat: throw error when QueryClientProvider has not been used to set a query client (#1309 )
Also updated docs
* test: add invalidateQueries test
* fix: prevent state update after mutation unmounted
* fix: add defaults to setQueryData
* fix: cancellations for useInfiniteQuery (#1359 )
* chore: update TypeScript version (#1314 )
* Merge branch 'master' into beta
* fix(hydration): set fetchMeta to null by default to make it serializable (#1371 )
* fix(hasPageParam): look for (undefined | null | false) values
* chore: fix linting
* fix: cross-bundle/version query client context
* docs: Update Examples
* docs: update example deps
* docs: keepPreviousData not set in paginated queries docs (#1376 )
* docs: typo infinite instead of ininite (#1379 )
* feat: devtools are now native to the core repo/npm-package
* feat(persist-localstorage-experimental): temporarily persist cache to disk
* tests: fix linting
* chore: attempt codesandbox import fix
* chore: revert codesandbox fix
* fix(persist-localstorage): add ssr-safety
* docs: fix typos in migration and queries guide (#1387 )
Fix typos in guides/migrating-to-react-query-3 and guides/queries.
Fixes #1378
* docs(typos): fix typos in mutations guide (#1392 )
* docs: update migration guide
* docs: update comparison
* chore: remove vercel.json
* docs: update comparison
* Update logo.sketch
* feat: reset query utils (#1375 )
* feat: reset query utils
* Update queryClient.ts
* Reset query docs and tests (#1393 )
* docs: Add resetQueries
* test: Add resetQueries tests
* remove unnecessary queryCache.reset methods
Co-authored-by: Aaron Jensen <aaronjensen@gmail.com>
* types: fix mutation context type
* fix: isFetched and isFetchedAfterMount should include failed fetches
* docs: Persist localstorage plugin
* feat: resetQueries refetches active queries (#1397 )
Co-authored-by: Niek Bosch <just.niek@gmail.com>
Co-authored-by: Abhijeet Singh <contact.abhijeetsingh@gmail.com>
Co-authored-by: JP Angelle <jp@angelle.me>
Co-authored-by: Jake Ginnivan <jake@ginnivan.net>
Co-authored-by: Tom Klaver <tomklav@gmail.com>
Co-authored-by: Dmitry Ivanov <liseniss@gmail.com>
Co-authored-by: Corentin Leruth <tinencor@gmail.com>
Co-authored-by: ConneXNL <contact@ivia-solutions.com>
Co-authored-by: Rubén Moya <rmoyarodriguez@gmail.com>
Co-authored-by: Pascal Wegner <p.wegner1992@gmail.com>
Co-authored-by: Amen SOUISSI <48829921+amen-souissi@users.noreply.github.com>
Co-authored-by: Aaron Jensen <aaronjensen@gmail.com>
2020-12-13 19:34:19 -07:00
Akshay S Dinesh
8aeb209c3b
docs: make hook return all necessary variables ( #1391 )
2020-12-11 03:07:54 -07:00
Tanner Linsley
7786867cd7
Update index.js
2020-12-09 11:54:48 -07:00
Piotr lasota
e817072185
docs: add emoji to mutations docs page ( #1377 )
...
Add emoji to mutations docs page for better UX.
2020-12-09 02:13:11 -07:00
Bernardo Mariano
6ef8f8a782
docs: Add infinite scrolling specific test examples ( #1372 )
2020-12-08 12:23:15 -07:00
Uday Vunnam
6e2e37ea5f
fix(types): change the order of types so that correct type inference is picked for **Object syntax** ( #1330 )
...
v2.26.4
* Change the order of types
Change the order of types so that correct type inference is picked for Object sytax
* change order of types
* Update usePaginatedQuery.ts
2020-12-06 21:15:32 -07:00