Conversation
n-lark
added this pull request to stack #2231
September 15, 2026 20:05
n-lark
marked this pull request as ready for review
September 17, 2026 20:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
global.dashboardStorestore is a Proxy, which is behavior rather than data, so it quietly stops working in two situations. This layer catches both and warns instead of failing silently.1️⃣ Cache-off context store
A persistent context store with
cache: falsekeeps no in-memory copy, so every read hands back plain data with the proxy stripped.isInMemoryBacked()probes for this up front, andui-baseinjects the store only when it is safe, otherwise it warns.2️⃣ Replacement
global.set('dashboardStore', <anything>)discards every widget's stored value.attachToContextremembers the store it injected, per context, so it catches any replacement, includingundefinedand primitives, which a shape check misses. Then re-creates the store, rehydrates any plain data, and callsonReplaced. A restart rehydrating plain data is not a replacement, so it stays quiet.Related Issue(s)
Relates to #2236
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel