Skip to content

Add SolidJs integration#4495

Draft
DanielBaumert wants to merge 2 commits intoclockworklabs:masterfrom
DanielBaumert:feature/solidjs-integration
Draft

Add SolidJs integration#4495
DanielBaumert wants to merge 2 commits intoclockworklabs:masterfrom
DanielBaumert:feature/solidjs-integration

Conversation

@DanielBaumert
Copy link

Description of Changes

Add support for SolidJs

API and ABI breaking changes

None

Expected complexity level and risk

Complexity level: 1
Risk level: 1

Testing

  • Runned "npm run build" from "../crates/bindings-typescript/package.json"
  • Add test-app

@CLAassistant
Copy link

CLAassistant commented Feb 27, 2026

CLA assistant check
All committers have signed the CLA.

Copy link

@Razboy20 Razboy20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Note I am not a contributor to SpacetimeDB, just happy for this PR. :)

As a SolidJS enjoyer myself, couple reactivity thoughts:

Use resources and stores instead of pure signals everywhere, and give useTable fine-grained reactivity.
solid-primitives db-store code example for integrating stores, useful read

Or create a resource with deep signals? Not sure

Comment on lines +58 to +60
const [rows, setRows] = createSignal<
readonly Prettify<UseTableRowType>[]
>([]);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be a store, updated with reconcile.


const connectionState: ConnectionState = useSpacetimeDB();

const [rows, setRows] = createSignal<

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like setRows is called anywhere except in full snapshot updates

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.

3 participants