When using jQuery to modify elements, two exceptions may occur:
On update:
Uncaught` TypeError: Cannot read property '3' of undefined
at updateVcomponent (react-lite.js:462)
at applyUpdate (react-lite.js:122)
at flatEach (react-lite.js:1792)
at flatEach (react-lite.js:1790)
at updateVChildren (react-lite.js:102)
at updateVnode (react-lite.js:88)
at compareTwoVnodes (react-lite.js:593)
at Klass.forceUpdate (react-lite.js:814)
at shouldUpdate (react-lite.js:867)
at Updater.updateComponent (react-lite.js:698)
When unmounting:
Uncaught TypeError: Cannot read property '3' of undefined
at destroyVcomponent (react-lite.js:491)
at destroyVnode (react-lite.js:157)
at destroyVelem (react-lite.js:372)
at destroyVnode (react-lite.js:154)
at destroyVelem (react-lite.js:372)
at destroyVnode (react-lite.js:154)
at destroyVelem (react-lite.js:372)
at destroyVnode (react-lite.js:154)
at applyDestroy (react-lite.js:135)
at flatEach (react-lite.js:1792)
Although this approach is not recommended, it works in React and fails in react-lite.
When using jQuery to modify elements, two exceptions may occur:
On update:
When unmounting:
Although this approach is not recommended, it works in React and fails in react-lite.
Minimal example: https://jsfiddle.net/kavLqzby/2/