chore: stash feed pagination

This commit is contained in:
zerosoul
2022-05-27 22:03:08 +08:00
parent 629f7e67a1
commit dbffe6fb4b
9 changed files with 549 additions and 220 deletions
+9 -3
View File
@@ -79,9 +79,9 @@ const Plugins = ({
window.addEventListener("paste", handlePasteEvent);
return () => {
window.removeEventListener("paste", handlePasteEvent);
if (plateEditor && updateDraft) {
updateDraft(plateEditor.children);
}
// if (plateEditor && updateDraft) {
// updateDraft(plateEditor.children);
// }
};
// window.addEventListener("paste")
}, [id, updateDraft]);
@@ -277,3 +277,9 @@ export const useMixedEditor = (key) => {
};
};
export default Plugins;
// export default memo(Plugins, (prev, next) => {
// return (
// prev.id == next.id &&
// JSON.stringify(prev.initialValue) == JSON.stringify(next.initialValue)
// );
// });