innards7
innards7
SSolidJS
Created by innards7 on 6/7/2024 in #support
Question about store `range` update API
I see, thanks for the info!
9 replies
SSolidJS
Created by innards7 on 6/7/2024 in #support
Question about store `range` update API
Yes, that's exactly right. [3, 7] updates 3, 4, 5, 6, and 7, whereas something like .slice would take 3, 4, 5, and 6. As a concrete example of what that means, if you update { from: x, to: array.length } you get TypeError: Cannot read properties of undefined since it goes one past the final index of the array.
9 replies