Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
efd7d32
docs: added more detailed explanation of what the cache timeout does …
Aug 26, 2020
f89a43d
Update index.js
tannerlinsley Aug 27, 2020
d85f79b
Add queryCache de/rehydration (#728)
Ephem Aug 29, 2020
f3b2fe0
feat: determine staleness locally instead of globally (#933)
boschni Aug 31, 2020
123104c
fix: add hydration.js to npm files
tannerlinsley Aug 31, 2020
64be573
fix: add hydration.js to npm files
tannerlinsley Aug 31, 2020
211edc0
fix: make sure initial data is used when switching queries (#944)
boschni Aug 31, 2020
14c4ec6
feat: change ReactQueryCacheProvider from hydration to Hydrate (#943)
boschni Aug 31, 2020
8470092
tests: fix setTimeout for ci tests
tannerlinsley Aug 31, 2020
e12d002
fix: always use config from last query execution (#942)
boschni Aug 31, 2020
52607f6
fix: make sure queries with only inactive observers are also invalida…
boschni Sep 1, 2020
b3c9ce8
feat: add notifyOnStatusChange flag (#840)
boschni Sep 2, 2020
89d1694
docs: update comparison
tannerlinsley Sep 2, 2020
3b06641
docs: update supporters and comparison
tannerlinsley Sep 2, 2020
5c14392
docs: fix sponsors rendering
tannerlinsley Sep 2, 2020
445ae1f
fix: ignore errors from background fetches (#953)
boschni Sep 2, 2020
7c22791
feat: add forceFetchOnMount flag (#954)
boschni Sep 2, 2020
c6c0de6
feat: add isPreviousData and isFetchedAfterMount flags (#961)
boschni Sep 3, 2020
6864624
docs(react-native): add solution for fullscreen error (#958)
strdr4605 Sep 3, 2020
6d4eeb8
docs: update sponsors
tannerlinsley Sep 4, 2020
4df81f8
Merge branch 'master' of https://github.com/tannerlinsley/react-query
tannerlinsley Sep 4, 2020
e9770b7
fix: use hook config on refocus or reconnect (#964)
boschni Sep 4, 2020
1117a51
docs: typo in useQuery.test (#965)
AlexKMarshall Sep 4, 2020
cb2b425
fix: make sure setQueryData is not considered as initial data (#966)
boschni Sep 5, 2020
6678d84
refactor: cleanup to reduce file size and add tests (#969)
boschni Sep 6, 2020
e0cb76f
Update devtools.md (#973)
rudzainy Sep 6, 2020
ce7acd0
fix: export hydration types (#974)
boschni Sep 6, 2020
eeab6bc
docs: update sponsors
tannerlinsley Sep 6, 2020
7730fee
fix(hydration): overwrite the existing data in the cache if hydrated …
Ephem Sep 6, 2020
00b9e96
refactor: optimize render path and improve type safety (#984)
boschni Sep 8, 2020
93db5b6
feat: add reset error boundary component (#980)
boschni Sep 11, 2020
5c79f72
refactor: remove unused deepEqual function (#999)
tatchi Sep 11, 2020
1eb4d00
fix: cancel current fetch when fetching more (#1000)
boschni Sep 11, 2020
0db8013
fix: notify query cache on stale (#1001)
boschni Sep 12, 2020
3b18110
test: add previous data test (#1003)
boschni Sep 12, 2020
3d967bf
feat: add support for tree shaking (#994)
boschni Sep 12, 2020
c7e342a
fix: useInfinityQuery fetchMore should not throw (#1004)
boschni Sep 12, 2020
065ffe0
docs: update api docs (#1005)
boschni Sep 13, 2020
380a049
refactor: remove query status bools (#1009)
boschni Sep 13, 2020
460ab33
fix: make sure initial data always uses initial stale (#1010)
boschni Sep 13, 2020
959e19e
feat: add always option to refetch options (#1011)
boschni Sep 14, 2020
c81e309
feat: export QueryCache and remove global query cache from docs and e…
boschni Sep 15, 2020
607425e
docs: remove shared config (#1021)
boschni Sep 16, 2020
34a7c1c
feat: add remove method and deprecate clear (#1022)
boschni Sep 16, 2020
c5738db
fix: should be able to invalidate queries (#1006)
boschni Sep 16, 2020
7b44a50
fix: should throw error when using useErrorBoundary (#1016)
boschni Sep 16, 2020
14dba5c
docs: Add graphql docs
tannerlinsley Sep 16, 2020
c977982
docs: add graphql-request example
tannerlinsley Sep 16, 2020
0c7f63d
docs: update graphql docs
tannerlinsley Sep 16, 2020
2fdecb1
docs: add graphql example
tannerlinsley Sep 16, 2020
1267731
feat: implement batch rendering (#989)
boschni Sep 16, 2020
0d1eb93
docs: Update comparison.md
tannerlinsley Sep 16, 2020
b03b3eb
docs: Update essentials banner
tannerlinsley Sep 17, 2020
6a6a657
docs: reorder homepage
tannerlinsley Sep 17, 2020
abf386b
fix: accept any promise in useMutation callbacks (#1033)
boschni Sep 17, 2020
4361a88
docs: prefer default config of QueryCache (#1034)
boschni Sep 17, 2020
70391e8
fix: include config callbacks in batch render (#1036)
boschni Sep 17, 2020
f0c3a2b
docs: update example deps
tannerlinsley Sep 17, 2020
11023f9
Merge branch 'master' of https://github.com/tannerlinsley/react-query
tannerlinsley Sep 17, 2020
9326990
docs: fix comparison 3rd party website links (#1040)
boreyko1 Sep 17, 2020
598ea39
Remove storing the return value of queryCache.removeQueries (#1038)
mdawar Sep 17, 2020
979527b
feat: add QueryCache.fetchQuery method (#1041)
boschni Sep 17, 2020
2616dcc
docs: add refetch documentation (#1043)
boschni Sep 17, 2020
641add1
docs: fix graphql example link
tannerlinsley Sep 17, 2020
9df60c9
Merge branch 'master' of https://github.com/tannerlinsley/react-query
tannerlinsley Sep 17, 2020
510619c
docs: remove trailing quotes from supporters links (#1045)
frontendwizard Sep 17, 2020
64ee0b2
docs: fix typo in queries page (#1046)
saintwinkle Sep 18, 2020
4d1bd35
fix: prevent bundlers from removing side effects (#1048)
boschni Sep 18, 2020
cd17d41
test: add invalidate query tests (#1052)
boschni Sep 18, 2020
8980223
fix: query should try and throw again after error boundary reset (#1054)
boschni Sep 18, 2020
b575e91
docs: fix `user.id` access in case user is null (#1056)
Sep 18, 2020
4e30c31
docs: update comparison
tannerlinsley Sep 18, 2020
b985320
Merge branch 'master' of https://github.com/tannerlinsley/react-query
tannerlinsley Sep 18, 2020
6b15ae0
docs: update sponsors
tannerlinsley Sep 18, 2020
5d05464
feat: add QueryCache.watchQuery (#1058)
boschni Sep 18, 2020
e200c99
docs: Update invalidations-from-mutations.md (#1057)
chadwithuhc Sep 18, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .babelrc

This file was deleted.

37 changes: 37 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const { NODE_ENV, BABEL_ENV } = process.env
const cjs = NODE_ENV === 'test' || BABEL_ENV === 'commonjs'
const loose = true

module.exports = {
presets: [
[
'@babel/env',
{
loose,
modules: false,
exclude: ['@babel/plugin-transform-regenerator'],
},
],
'@babel/preset-typescript',
'@babel/react',
],
plugins: [
[
'const-enum',
{
transform: 'constObject',
},
],
'babel-plugin-transform-async-to-promises',
cjs && ['@babel/transform-modules-commonjs', { loose }],
[
'@babel/transform-runtime',
{
useESModules: !cjs,
version: require('./package.json').dependencies[
'@babel/runtime'
].replace(/^[^0-9]*/, ''),
},
],
].filter(Boolean),
}
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
{
"ignoreParameters": true
}
]
],
"no-shadow": "error"
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ node_modules
# builds
build
dist
lib
es
artifacts
.rpt2_cache
coverage
Expand All @@ -25,6 +27,8 @@ yarn-debug.log*
yarn-error.log*
.history
size-plugin.json
stats-hydration.json
stats-react.json
stats.html
.vscode/settings.json

Expand Down
29 changes: 22 additions & 7 deletions docs/src/manifests/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,21 @@
"title": "TypeScript",
"path": "/docs/typescript",
"editUrl": "/docs/typescript.md"
},
{
"title": "GraphQL",
"path": "/docs/graphql",
"editUrl": "/docs/graphql.md"
},
{
"title": "React Native",
"path": "/docs/react-native",
"editUrl": "/docs/react-native.md"
}
]
},
{
"title": "Concepts",
"title": "Guides & Concepts",
"open": true,
"routes": [
{
Expand Down Expand Up @@ -151,6 +161,12 @@
}
]
},
{
"title": "API Reference",
"heading": true,
"path": "/docs/api",
"editUrl": "/docs/api.md"
},
{
"title": "Examples",
"open": true,
Expand All @@ -165,6 +181,11 @@
"path": "/docs/examples/basic",
"editUrl": "/docs/examples/basic.mdx"
},
{
"title": "Basic w/ GraphQL-Request",
"path": "/docs/examples/basic-graphql-request",
"editUrl": "/docs/examples/basic-graphql-request.mdx"
},
{
"title": "Custom Hooks",
"path": "/docs/examples/custom-hooks",
Expand Down Expand Up @@ -228,12 +249,6 @@
]
}
]
},
{
"title": "API Reference",
"heading": true,
"path": "/docs/api",
"editUrl": "/docs/api.md"
}
]
}
Loading