Skip to content

Cache never cleared #46

@AlexShukel

Description

@AlexShukel

Problem definition

With current implementation, cache is essential part of the process using Suspense API, because we need to save data in memory (for example, in useRef) to return it after Suspense has been resolved from hook useQuery. However, the problem may arise when there are a lot of requests cached. We need to clear resources.

SOLUTION

Define the cache limit - the maximum number of records saved for particular useQuery call. Each useQuery call must have at least cache limit = 1 to work properly.

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