apollo-state-sync - API Reference (Users)
    Preparing search index...

    Variable shouldNotPersistSymbolConst

    shouldNotPersistSymbol: typeof shouldNotPersistSymbol = ...

    By default, ApolloClient's state is persisted following every cache operation.

    This symbol is used to specify if the apollo client's state should not be persisted following a specific operation. Apollo Client's state will not be persisted if it is set to true as shown in this following example.

    const inMemoryStore = new InMemoryCacheSynced(inMemoryCacheConfig)

    inMemoryStore.write({
    // Since this is true, the cache will not be persisted as part of this cache operation.
    [shouldNotPersistSymbol]: true,
    query: gql('query { currentUser: { id } }'),
    result: {
    currentUser: { id : 2 }
    }
    })