Skip to content

feat(kit)!: basic shared state - #147

Merged
antfu merged 12 commits into
mainfrom
feat/shared-state
Dec 23, 2025
Merged

feat(kit)!: basic shared state#147
antfu merged 12 commits into
mainfrom
feat/shared-state

Conversation

@antfu

@antfuantfu commented Dec 23, 2025

Copy link
Copy Markdown
Member

This PR provides the capability to host shared state between server/clients for easier state management

Breaking changes in this PR:

  1. Change of the ctx.rpc.broadcast signature on Node.js side.
  2. Change the .get() to .value() on SharedState

@pkg-pr-new

pkg-pr-newBot commented Dec 23, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/devtools@147
npm i https://pkg.pr.new/@vitejs/devtools-kit@147
npm i https://pkg.pr.new/@vitejs/devtools-rpc@147
npm i https://pkg.pr.new/@vitejs/devtools-vite@147

commit: 5e13d3c

@antfu
antfu marked this pull request as ready for review December 23, 2025 12:40
@antfuantfu changed the title feat(kit): shared statefeat(kit): basic shared stateDec 23, 2025
@antfuantfu changed the title feat(kit): basic shared statefeat(kit)!: basic shared stateDec 23, 2025
@antfu
antfu merged commit 9a2d8fc into mainDec 23, 2025
9 checks passed
@antfu
antfu deleted the feat/shared-state branch December 23, 2025 12:42
Sign up for freeto 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.

1 participant

@antfu