mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-01 04:50:27 +02:00
Upgrade to React v16 lifecycle (#1975)
* Trying to use memoization and upgrade to react v16 * Fix error * Fix error * Fix handlers error * Add annotation * Remove EventHandlers * No state * Remove un-necessary polyfill * Remove un-necessary polyfill * Remove un-necessary handlers settings * Early Return * Fix Early Return * Fix onChange * Do not run onChange stack twice on same change * Update annotation * Better sense of resolve++ * Cache value in onChange and didMount * Remove un-necessary rechack * Renaming * Remove change in leaf.js * Handlers as this.handlers * do not re-initialize change in onChange * Re-run onChange stack only when change happens * Update value when stack changes * Rename to memoize-one * queue changes * Unify interface * Fix bug * Add document * Remove id * Do not use map * Fix bug * Fix eslint * Fix update when props.value changes * Add annotation * Fix stack * Inline queueChange * Restore onChange * restore onChange * Refactor change and onChange * Use onChange as the single interface for update * Do not flushChange if inside event * Give a warning about synchronous editor.change call * Change isInChange in editor.change * refactor resolution and tmp logic, cleanup code
This commit is contained in:
committed by
Ian Storm Taylor
parent
d05e90e546
commit
877dea16bf
@@ -46,6 +46,7 @@
|
||||
"lerna": "^2.7.1",
|
||||
"lodash": "^4.17.4",
|
||||
"matcha": "^0.7.0",
|
||||
"memoize-one": "^4.0.0",
|
||||
"mocha": "^2.5.3",
|
||||
"mocha-lcov-reporter": "^1.3.0",
|
||||
"npm-run-all": "^4.1.2",
|
||||
|
Reference in New Issue
Block a user