Skip to content

Fixes basic issues using the basic-react template.#4017

Merged
bfops merged 6 commits intomasterfrom
tyler/claude-docs-2
Jan 13, 2026
Merged

Fixes basic issues using the basic-react template.#4017
bfops merged 6 commits intomasterfrom
tyler/claude-docs-2

Conversation

@cloutiertyler
Copy link
Contributor

Description of Changes

  • Made spacetime dev a positional argument and deprecated --database
  • Fixed double connection in React SDK
  • Added a more descriptive error message to unresolved table name.

API and ABI breaking changes

Deprecates --database. Still works, but it prints with a warning.

Expected complexity level and risk

2

Testing

  • I have tested that the double render fix works in React

In StrictMode, React unmounts and remounts components synchronously to
detect side effects. The previous cleanup would disconnect immediately,
killing the in-flight WebSocket connection.

Fix: defer disconnect with setTimeout(..., 0). Since StrictMode remounts
happen in the same JavaScript task, the remount cancels the pending
timeout, preserving the connection. Real unmounts proceed normally since
no remount occurs to cancel the timeout.
The error now hints that the table may be private, helping users
diagnose visibility issues.
@egormanga

This comment was marked as resolved.

For consistency with other CLI commands (publish, call, logs, sql),
the database name is now a positional argument instead of a flag.
The --database flag is deprecated but still works with a warning.
Copy link
Collaborator

@bfops bfops left a comment

Choose a reason for hiding this comment

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

Well that seems like a headache to track down. Fix LGTM if it fixes something for you (well, once the CLI docs are fixed).

@cloutiertyler
Copy link
Contributor Author

/update-llm-benchmark

@clockwork-labs-bot
Copy link
Collaborator

LLM Benchmark Results (ci-quickfix)

Language Mode Category Tests Passed Pass % Task Pass %
Rust rustdoc_json basics 19/27 70.4% 66.7%
Rust rustdoc_json schema 23/34 67.6% 60.0%
Rust rustdoc_json total 42/61 68.9% 63.6%
C# docs basics 27/27 100.0% 100.0%
C# docs schema 24/32 75.0% 66.7%
C# docs total 51/59 86.4% 84.8%

Generated at: 2026-01-13T16:50:13.733Z

@bfops
Copy link
Collaborator

bfops commented Jan 13, 2026

re-running failed testsuite

@bfops bfops enabled auto-merge January 13, 2026 18:17
@bfops bfops disabled auto-merge January 13, 2026 18:37
@bfops bfops enabled auto-merge January 13, 2026 18:37
@bfops bfops disabled auto-merge January 13, 2026 18:38
@bfops bfops enabled auto-merge January 13, 2026 18:38
@bfops bfops added this pull request to the merge queue Jan 13, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 13, 2026
@bfops bfops added this pull request to the merge queue Jan 13, 2026
Merged via the queue into master with commit 7257469 Jan 13, 2026
44 of 45 checks passed
kistz pushed a commit to kistz/SpacetimeDB that referenced this pull request Jan 13, 2026
# Description of Changes

- Made spacetime dev <database> a positional argument and deprecated
--database
- Fixed double connection in React SDK
- Added a more descriptive error message to unresolved table name.

# API and ABI breaking changes

Deprecates `--database`. Still works, but it prints with a warning.

# Expected complexity level and risk

2

# Testing

- [x] I have tested that the double render fix works in React

---------

Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com>
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.

4 participants