Open lilnasy opened 12 months ago
Unrelated, but Ryan ran into your PR on stream and was amused.
I was able to get this working with a few changes: https://github.com/krausest/js-framework-benchmark/compare/master...joprice:js-framework-benchmark:solidjs-elmish
Attention: use arrays instead of lists for better performance
Tuples are represented using arrays.
let a = "maxime", 32
export const a = ["maxime", 32];
To track changes in an array, you would have to use a For
or Index
component.
Only functions and member expressions (=property access) are tracked when used in a reactive scope ( e.g. an effect or in JSX).
That is why anonymous records work and tuples not.
(BTW I just updated the samples in this repo to use the latest version of solid-js)
I am writing an entry for Fable.Solid Elmish in krausest/js-framework-benchmark. The benchmark involves creating, rendering, appending, updating, and deleting rows.
The implementation fails with the error below when the number of rows goes beyond 1k.