Skip to content

Make core library-agnostic while preserving everything else#63

Open
buzinas wants to merge 2 commits into
rocicorp:mainfrom
buzinas:library-agnostic-core
Open

Make core library-agnostic while preserving everything else#63
buzinas wants to merge 2 commits into
rocicorp:mainfrom
buzinas:library-agnostic-core

Conversation

@buzinas

@buzinas buzinas commented Jul 12, 2026

Copy link
Copy Markdown

Related issues

Implements #61.

Description

This PR makes core not only framework-agnostic, but also library-agnostic. Before this PR, core depends on @rocicorp/zero, but only its types are used opaquely. Now it uses an opaque generic TQuery type instead, so any consumer can just pass the query shape their library use.

The types that depended on @rocicorp/zero were moved to src/zero-types.ts and both react and solid libraries only change where they import the types from and nothing else.

The goal here is to be able to make core compatible not only with Zero, but also with any other fetching library as React Query, Apollo GraphQL etc.

@buzinas buzinas mentioned this pull request Jul 12, 2026
@buzinas buzinas force-pushed the library-agnostic-core branch from b25fb51 to 21e1863 Compare July 13, 2026 00:27
Comment thread src/core/types.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants