Open kbrsh opened 6 years ago
Closing because there is no local state in Moon v1.
The reason for a library to implement keyed loops is to preserve DOM state rather than library state.
Actually, Moon aimed to have mechanisms for storing DOM state directly within vnodes, moving the responsibility of maintaining DOM state to the developer (e.g. a focus
prop). I realized that it wasn't exactly practical, so a keyed algorithm is back on the roadmap.
Loops need an option to be keyed in order to reorder components and preserve state.