'Apollo Client state management

I have a situation where I need to save user input on multiple UI pages and then send accumulated data to some 3rd party backend service.

I wanted to understand if Apollo Client is capable of storing user input on each page in its cache and then dumping it to the backend server when needed? Is it the right way of doing things?

What are the requirements for my tech stack in this case?

Currently I have the following setup: react frontend -> graphql -> Java backend

Thanks



Solution 1:[1]

Maybe, you can use localStorage for save data in local state, or Do you need save

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 artista1993