wavesoft/dot-dom

Extra space in keys? [0.4.0]

mindplay-dk opened this issue · 2 comments

Why the extra space in the key-name here?

(" " + vnode.$ // b. Or compose an ID using the node type

If it's just for type-coercion, an empty string should work just as well?

Yeah, this is for type-coercion and compression optimisation : repeating patterns 😉

Since you don't really care about what the automatic key really contains, it should be fine

So if I understand this correctly, you're using the extra space because you've used the same " " sequence in a few other places, and this compresses better??

I think you just blew my mind LOL 🤯