Skip to content

Conversation

shiftlabs1
Copy link

svelte helper just like react with example project added to the rivetkit core

Copy link

graphite-app bot commented Aug 13, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@NathanFlurry NathanFlurry requested a review from jog1t August 13, 2025 17:35
joshua1 and others added 11 commits August 15, 2025 21:38
handler: (...args: any[]) => void,
) {
// Get the current connection reactively
const connection = $derived(state.state.connection);
Copy link

Choose a reason for hiding this comment

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

There appears to be a state access issue in the useEvent function. The code is trying to access state.state.connection, but based on the implementation pattern seen elsewhere in the file, this should be state.currentVal.connection. This incorrect property path will likely cause runtime errors when attempting to access the connection object.

// Current problematic code
const connection = $derived(state.state.connection);

// Should likely be
const connection = $derived(state.currentVal.connection);
Suggested change
const connection = $derived(state.state.connection);
const connection = $derived(state.currentVal.connection);

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

- `createState()`: Function that returns initial actor state
- `onStart(c)`: Called any time actor is started (after restart/upgrade)
- `onStateChange(c, newState)`: Called when actor state changes
- `onStateChange(c,prevState, newState)`: Called when actor state changes
Copy link

Choose a reason for hiding this comment

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

The onStateChange function signature has been updated to include prevState, but there's a spacing inconsistency in the documentation. For consistency with other function signatures in this file, a space should be added after the first comma:

- `onStateChange(c,prevState, newState)`: Called when actor state changes
+ `onStateChange(c, prevState, newState)`: Called when actor state changes
Suggested change
- `onStateChange(c,prevState, newState)`: Called when actor state changes
- `onStateChange(c, prevState, newState)`: Called when actor state changes

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Copy link

vercel bot commented Sep 16, 2025

@joshua1 is attempting to deploy a commit to the Rivet Team on Vercel.

A member of the Team first needs to authorize it.

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