We don't have server currently. We're using Apollo client purely on client side with apollo-link-state and apollo-link-rest. I want to prevent the loading state of the application as I can have the raw data I would get from the REST endpoint during site load. The closest I could get was using our customFetch handler where IF response exists in cache THEN return new Response() with that data. The problem is that this will trigger the loading state for a moment. I want to avoid this rerender in the application. I cannot use writeQuery() as it would need all the custom types and transformations applied before and the dataset is pretty complex. What I want is to feed my cache at initialization with raw, unprocessed data.
Is there a way to preload Apollo's cache-inmemory with raw data?
286 views Asked by wintercounter At
0
There are 0 answers
Related Questions in GRAPHQL
- Expo Go crashing with on error message using Amplify Graphql to get an item
- Error: Response not successful: Received status code 405
- uninitialized constant GraphqlDevise::SchemaPlugin from graphql_devise
- Endpoint graphiql not working in Spring Boot application
- Relationships query in Tableau Metadata API by using GraphQL
- Dealing with Null Values in GraphQL API Response
- GraphQL filter query in react app with https://countries.trevorblades.com/ api
- Issue querying related data in Apollo Server 4 with Prisma Schema
- Error creating bean with name 'routerFunctionMapping' defined in class path resource
- Using Apollo client wrapper in Next.js 14 App router
- 400 Bad Request From React Axios Graphql SageX3
- graphql-java extension type redefine error from version 15
- How do I use and access the operation name in a graphQL query using spring-boot-starter-graphql and GraphQlTester?
- Upload file in GraphQL and apollo-server
- GraphQL and springboot resolver mapping problem
Related Questions in APOLLO
- Error creating bean with name 'routerFunctionMapping' defined in class path resource
- Apollo GraphQL Kotlin Codegen Fragment Serializable
- Choosing Backend for Multilingual E-commerce with Nuxt 3, MongoDB, GraphQL
- Apollo call API which provides all of a type, reducing duplicate calls when resolving individuals
- Pagination does not work in Apollo React Native
- GraphQL query in React for Sorare data (running locally)
- Context is undefined in Apollo RESTDataSource
- Apollo query subscription doesn't have extensions part in Error
- React front end not reaching graphQL resolver
- Wrong data is given from Apollo cache to React because of missing ids
- How to handle multiple api endpoints for apollo iOS
- Apollo headers not found parsing in Node.js
- When sending data to the database an error occurs [ApolloError: VALIDATION_ERROR]
- Apollo is returning data wrong, but is correct in Network inspector
- Call one query and wait for it to finish before calling another one
Related Questions in APOLLO-CLIENT
- Error: Response not successful: Received status code 405
- App expo uses useQuery to connect to graphql server, it works in development and when generating apk it works on Android 7 but not on Android 11 or +
- Dealing with Null Values in GraphQL API Response
- Using Apollo client wrapper in Next.js 14 App router
- Upload file in GraphQL and apollo-server
- How to set variables to context.extensions object when execute query?
- React GraphQL mutation is not leaving the loading state
- Apollo GraphQL Kotlin Codegen Fragment Serializable
- GraphQL query in React for Sorare data (running locally)
- GraphQL apollo caching query that has no id
- Wrong data is given from Apollo cache to React because of missing ids
- Getting Bad Request from graphql call
- Call one query and wait for it to finish before calling another one
- Issue with passing "locale" variable in Apollo useQuery and Strapi v4
- Apollo client, merges objects when 'id' propery is empty
Related Questions in APOLLO-CACHE-INMEMORY
- GraphQL apollo caching query that has no id
- Angular, graphql apollo error - how to define a custom merge function?
- How to implement In memory cache from angular front with graphql Queries?
- Why apollo client removes some properties (sets them to null) from a cached object spontaneously?
- Custom hook rerender does not trigger component to rerender
- Apollo Client: Is there a way to define Apollo Client type policy after the client object is created?
- Apollo cache updates list when querying item details
- How to correctly replace the item in Apollo cache by the real one?
- How to update nested structures in apollo cache using cache.modify
- When using Apollo Client, does every query / mutation need an id _id field to properly cache in react native?
- React Apollo Cache updating delay after mutation to load new image
- Get parent object at field type policy
- Graphql type with id property that can have different values for same id
- Apollo Graphql relayStylePagination prevents query to refetch on variables change
- How to create Apollo Client read function to read a field from a nested object
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)