4 ms·
I took it for a super simple test run and behavior seems very… weird and incorrect: https://codesandbox.io/s/7o92r https://codesandbox.io/s/7o92r. Perhaps I'm j
by ezekg 7y ago
I took it for a super simple test run and behavior seems very… weird and incorrect: https://codesandbox.io/s/7o92r https://codesandbox.io/s/7o92r. Perhaps I'm just using it wrong, but it's not very clear why this example's state fails to update as you would expect. And I found a few examples of rendering that don't behave as expected.
- luwes 7y agothanks for reporting, seems to be a bug. added to GH issues and will fix asap
- luwes 7y agoThis is fixed in v0.12.3, https://codesandbox.io/s/sinuous-counter-hmp8x https://codesandbox.io/s/sinuous-counter-hmp8x The issue below is still to be fixed. It currently returns an array when it should be a DocumentFragment. It's related to the popular `htm` package that Sinuous uses. html`${seq.map(i => html`<li>Counter #${i} ${counter}</li>`)}`
- luwes 7y agoalso fixed https://codesandbox.io/s/sinuous-array-bug-fixed-4s2nr https://codesandbox.io/s/sinuous-array-bug-fixed-4s2nr