Closed lucas-jones closed 1 year ago
Thanks for the report & repro! Fairly certain this is because we aren't calling serialize()
for these newly constructed instances, but are calling deserialize()
in the system, which causes the value to be overwritten with 0. Should be a simple fix!
If I'm able to push 0.15 out this weekend it'll just be included in that. If it doesn't look like that'll happen, I'll cut a 0.14.1 release so this can be resolved and not block folks.
Cheers!
Bug Description
The initial values when defining a struct are not set correctly for Res and SystemRes
Console logs out
0
Thyseus Version (e.g. v0.9.0)**
0.14.0
Bundler / Build Tool (e.g. Vite, Webpack)**
Vite
Environment & Version (e.g. \<browser> \<version>, Node \<version>)**
Brower
Reproduction URL (optional)**