Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

[Feature] Support optional observable caching #15

@DanielMSchmidt

Description

@DanielMSchmidt

Given you have two queries resolving the same item (e.g. in an array or as a single node) in the current implementation two Observables for the same entity would be created.
Ideally, we would only resubscribe to an observable we already have.

For this we would need to have a similar interfaceas Relay, having a node fulfil the interface of having a unique identifier. If this interface is fulfilled we can enable caching, otherwise we do it as before. We should also have an option to globally disable this kind of caching.

I would like to export sth like this

export const CacheableSchema = `
interface Cacheable {
  id: ID!
} 
`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions