Skip to content

Conversation

@antfu
Copy link
Member

@antfu antfu commented Dec 23, 2025

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
Copy link

pkg-pr-new bot commented Dec 23, 2025

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
@antfu antfu changed the title feat(kit): shared state feat(kit): basic shared state Dec 23, 2025
@antfu antfu changed the title feat(kit): basic shared state feat(kit)!: basic shared state Dec 23, 2025
@antfu antfu merged commit 9a2d8fc into main Dec 23, 2025
9 checks passed
@antfu antfu deleted the feat/shared-state branch December 23, 2025 12:42
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