Comments (7)
Hello @BatuhanW
I'm running the project only in local, so all the database and server on local, so why i cant see my own data without internet?
My server is installed on Localhost, my database in localhost, everything in local only there is no effected with outside world
from refine.
Hey @ilomon10, looks like this is an issue with the @tanstack/query
's network mode. You can set it to always
or offlineFirst
to make it send the requests regardless of the network state.
- Check out the Network Mode docs from the
@tanstack/query
here - Check out the
<Refine />
component config to update it globally here
from refine.
Hello @ilomon10 how do you expect to login without an internet connection? Can't really see the problem here, as it's expected you can't login or see any data without internet.
from refine.
Hey @ilomon10 sorry for the misunderstanding, re-opening the issue, we'll investigate it.
from refine.
Thankyou @BatuhanW for reopen the issue 🙇🏻♂️
Thankyou @aliemir now by setting by this, the request now is started without connection. 🎉
<Refine
// ...
options: {
// ...
reactQuery: {
clientConfig: {
defaultOptions: {
mutations: {
networkMode: "offlineFirst" // or replace with "always" to make the request run normally, without connection.
},
},
},
},
}
/>
from refine.
Hello @ilomon10 would you like to make a contribution by adding this question/answer to our FAQ documentation?
https://github.com/refinedev/refine/blob/master/documentation/docs/guides-concepts/faq/index.md
from refine.
Sure @BatuhanW Im so excited to contribute.
But im still have type error, when i implement this options
Type error: Type 'string' is not assignable to type 'NetworkMode | undefined'.
options={{
reactQuery: {
clientConfig: {
defaultOptions: {
queries: {
networkMode: "always", // Type error here
},
mutations: {
networkMode: "always", // and here
},
},
},
},
}}
from refine.
Related Issues (20)
- [BUG] error when trying to implement multiple top level `conditionalFilter` using useTable from @refinedev/react-table HOT 2
- [FEAT] Support the dynamic meta parameters when submitting HOT 1
- [BUG] MUI useDataGrid setFilters HOT 5
- [FEAT] Passing arbitrary graphql variables to hasura dataProvider HOT 7
- [BUG] appendCurrentPathToQuery on Authenticated HOT 2
- [DOC] Browser view crashes in Tutorial HOT 3
- [FEAT] Unable to highlight non-CRUD page on menu item HOT 4
- [FEAT] Unable to configure non-CRUD pages in i18n configuration file HOT 4
- [BUG] `mutationOptions` are overriding Refine's behavior unexpectedly
- [DOC] Edit for readability and grammar HOT 3
- [BUG] `useFieldArray` options dissapear after routing away and back to edit page HOT 2
- [BUG] MUI Inferencer sets all fields to required HOT 1
- [BUG] Exmaple project cannot view HOT 3
- [BUG] nextjs 14 upgrade breaks imports HOT 4
- [FEAT]: Supabase Data Provider should filter array column by array HOT 7
- [FEAT] Support TypedDocumentNode for GraphQL data-provider HOT 6
- [BUG] Supabase token refresh not handled in Next.js example HOT 1
- [FEAT] Serving from a subdirectory HOT 2
- [DOC]: clarify rowCount retrieval and improve pagination examples
- [FEAT] i18n option when using cli to create project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refine.