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

remove invalidate from Product and Composition #192

@fes300

Description

@fes300

when a Product query is invalidated all the sub-queries that are part of it get invalidated too (ex const prod = product({ user, preferences }).invalidate() invalidates prod but also user and preferences). This makes it easy to mistakenly invalidate bigger chunks of data than actually needed and hides important details when invalidating (you only explicitly mention prod in the invalidation).

The same arguments applies to Composition as const comp = compose( user, preferences).invalidate() invalidates comp and also user and preferences.

The proposal is to leave invalidate only on CachedQuery and progressively mark it "deprecated" and then remove it from Product and Composition

Metadata

Metadata

Assignees

No one assigned

    Labels

    FE maintproposalissues describing early stage proposals that needs to be further discussed before implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions