Skip to content

Conversation

@peternandersson
Copy link
Contributor

We previously were initializing this to undefined which would most of the time be reasonable, but we cache the plugin's variable state, so if we subscribe and fetch the variable before this hook is called, we would never receive the message from sigma and update the value. This fixes the hook to grab any variable we already received from sigma for that id in state.

@peternandersson peternandersson merged commit 9ac7dca into main May 22, 2025
1 check passed
@peternandersson peternandersson deleted the peter/control-api/fix-initial-state branch May 22, 2025 20:27
@peternandersson peternandersson restored the peter/control-api/fix-initial-state branch June 7, 2025 00:46
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