Skip to content

Store Caching within computations #20

@JAForbes

Description

@JAForbes

If you define a store query within a computation, the reactive queries end up being cleaned up which leads to the query becoming non-reactive.

This is just how S works, but I really would like to cache queries. I might disable caching queries for now and think about this as I want to work with the grain of S while also supporting caching queries.

Maybe queries are defined in a separate S.root and have the same lifecycle as the context which created the store. But that may encourage having multiple stores which I don't think is a good approach by default.

Or... we use cleanup hooks in the read stream to deregister/register the store instance. Needs some dogfooding to find the right approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions