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

    Function setPersistedState

    • Saves Apollo Client state to local storage.

      By default, preserves the expiration time of the existing unexpired state. Set overwriteExpiresAt to true to use the expiration time in state.

      Parameters

      • state: PersistedStateType

        the complete state object to persist.

      • overwriteExpiresAt: boolean = false

        whether to replace an existing expiration time.

      Returns void