Tao Xin
Tao Xin
Hmm..., the overall bundle size is a good argument. Let me assess the impact on the bundle size to see if I want to include it in future releases. One...
After thinking through this feature and some related issues, my current thought is probably it's better to leave the current behavior as-is. The problem of this feature is: For DOM...
I am not aware not any scenario where VanJS could crash the web page (if you have an example, please let me know). If by "crash", you mean an error...
If an exception happens before the rendering process, which means none of rendering code will be executed, the blank screen is working as intended, which is not a crash. Per...
Thanks @FredericHeem for providing the examples! I would like to summarize the current status of the discussion. In general 2 issues are being discussed in this thread: ## 1. Whether...
With the [`1.0.0` release](https://github.com/vanjs-org/van/discussions/72), `div({id: undefined}, "Text")` will produce `Text` instead of throwing an error.
Thanks @btakita for your remark! I think there could be personal opinions regarding this issue. I think there are multiple things to trade-off: 1. The consistent behavior regarding `undefined`. Ideally:...
> Perhaps a helper function would be a way to get around the impasse? > > ```ts > function cleanProps(props:Object) { > for (const key of Object.keys(props)) { > if...
Yes. I think that should be possible. You might need to manually cast the nested field into a Reactive object in order to use `vanX.list`.
I think you wanted `Thumb` to be an element, not a function. In other words, the line ```js const Thumb = () => div( ``` should be ```js const Thumb...