-
Notifications
You must be signed in to change notification settings - Fork 124
fix: inspector #3104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: inspector #3104
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. 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. This stack of pull requests is managed by Graphite. Learn more about stacking. |
commit: |
Merge activity
|
### TL;DR Fixed query key indexing in actor queries context and added default timestamp-based hash generation. ### What changed? - Fixed the `queryFn` implementations to correctly access the `actorId` from the query key array at index 2 instead of index 1 - Added a default value for the `hash` parameter that uses the current timestamp (`Date.now()`) when no hash is provided ### How to test? 1. Verify that actor queries work correctly by navigating to the actor inspector in the UI 2. Test with both explicit hash values and without providing a hash to ensure the default timestamp-based hash works properly 3. Confirm that all actor-related queries (ping, state, connections, database, events, RPCs, auto-wake-up) function as expected ### Why make this change? The previous implementation had incorrect indexing when accessing query key elements, which could lead to undefined values and errors. The query key structure is `[hash, "actor", actorId, ...]`, so the `actorId` is at index 2, not index 1. Additionally, providing a default timestamp-based hash ensures that the context always has a unique identifier even when not explicitly provided.
Graphite Automations"Test" took an action on this PR • (10/07/25)1 assignee was added to this PR based on Kacper Wojciechowski's automation. |
TL;DR
Fixed query key indexing in actor queries context and added default timestamp-based hash generation.
What changed?
queryFn
implementations to correctly access theactorId
from the query key array at index 2 instead of index 1hash
parameter that uses the current timestamp (Date.now()
) when no hash is providedHow to test?
Why make this change?
The previous implementation had incorrect indexing when accessing query key elements, which could lead to undefined values and errors. The query key structure is
[hash, "actor", actorId, ...]
, so theactorId
is at index 2, not index 1. Additionally, providing a default timestamp-based hash ensures that the context always has a unique identifier even when not explicitly provided.