Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support more strongly-typed ReadTransaction. #55

Merged
merged 1 commit into from
Sep 13, 2023

Commits on Sep 13, 2023

  1. feat: Support more strongly-typed ReadTransaction.

    useSubscribe() is used by both Replicache and Reflect. Reflect has
    added a new form of ReadTransaction that has a generic get<T>
    method. We would like users of replicache-react to be able to use
    that.
    
    However, currently replicache-react pulls in Replicache directly
    and uses its ReadTransaction. We could publish a new Replicache
    with the new signature, but then we would have a new problem:
    that head replicache-react only works with the latest
    Replicache/Reflect.
    
    Solution:
    
    Decouple replicache-react and Replicache completely by defining an
    abstract Subscribable.
    aboodman committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    5279add View commit details
    Browse the repository at this point in the history