You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because StackReconciler#render(compositeView:) enumerates all the properties, resulting in it providing non-consecutive ids to setupState. A potential fix is to declare a var stateIdx outside of the loop and manually increment it when initializing each state variable.
If any non-state variables precede state variables, Tokamak crashes when the state variables are read.
Repro:
Encountered in #129.
This happens because
StackReconciler#render(compositeView:)
enumerates all the properties, resulting in it providing non-consecutive ids tosetupState
. A potential fix is to declare avar stateIdx
outside of the loop and manually increment it when initializing each state variable.https://github.com/swiftwasm/Tokamak/blob/ffa686c7dca8d454e88246ed2ba7106dee6c4836/Sources/TokamakCore/StackReconciler.swift#L115-L121
The text was updated successfully, but these errors were encountered: