McBrincie212
State Doesn't Get Defaulted And Values Don't Change
So i am making a reactive state system where the developer of a component can supply a default state and other states if they want. The default state is used when nothing is active and regarding the states. The code checks on the array to say which is active, the way the state array is orchestrated, it uses the first active state present in the list
Each state has specific values to it, like color & other stuff. The
STATE DEFAULTING EFFECT
gets triggered and correctly switches the state. However the STATE DEFAULTING MEMO
is not triggered. For some reason when i get the style field, even tho it does supply the correct value. The values do not get updated
For context getterFromReactive
"normalizes" the values into just accessors. It does create a effect for checking whenever the value is changed or not and update the returned value accordingly
46 replies
Having The Same Context Transfer Different Properties
im trying to make a base widget, where it has common stuff amongst the widget elements(canvas for now, there will be the reference panel as well)
note: BaseCanvasPropertiesInterface is a placeholder
on the context here i want to supply
BaseWidgetPropertiesInterface
however, i can't just supply it like so bc my other widgets will inherit from this interface and expand with their own properties the naive approach would be making another context but ideally i want to handle this case from this context57 replies
Performance Overhead When Panning And Zooming
So im experiencing performance overhead when panning and zooming. I assume this is javascript's fault but i do need some way to optimise it because as of now its slow even with like 5 canvases opened
24 replies