Closed (fixed)
Project:
Canvas External JavaScript Components
Version:
1.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2025 at 12:54 UTC
Updated:
19 Dec 2025 at 21:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
fagoHere is a backtrace when running in dev-mode:
It seems to process the input-form of the *previous* component, then breaks. Because of that the bug appears only when navigating FROM certain components to it.
Comment #3
fagoSomehow this is broken for extjs components that have no props, while it works for other (e.g. js) components that have no props.
Not sure why, but in the extjs-component case the effect for fetch the form does not trigger.
It might be that React is batching updates for:
- Line 393: setDynamicStaticCardQueryString('')
- Line 412: setDynamicStaticCardQueryString(queryString)
so that RTK Query reads the state BEFORE the second update applies
I tried removing the first setDynamicStaticCardQueryString('') since it gets overwritten anyway later, but that did only partially solve. The problem was still triggered often, it seems there is a race condition somewhere.
So we need to reliably clear the the form content when the component is changed -> added a useEffect() for that;
That somewhat works, the error still happens in console-log, but it's not visible any more. Still the underlying is not yet fixed it seems.
Comment #4
fagoThe useEffect runs too late, the error is still happening before. The useEffect just triggers another update that makes the error go away visually. I was able to make it work by skipping this too-early triggered form-re-rendering when the selected-component is not the current component. That seems to fix it!
Comment #5
fagoComment #6
fagoCreated #3559574: UI shows error 'can't access property "resolved", ne[r] is undefined' with extjs-components having no props for fixing this in canvas. Leaving this issue open for everyone to find it easily.
Note: After applying the fix in canvas you need to re-build the canvas/ui - run "npm run build" in the ui directory (for details: see canvas docs)
Comment #7
fagothis is fixed with canvas 1.0.0 :-)