Commit Graph

16 Commits

Author SHA1 Message Date
Daniel Spitzer
9093cdfcf5 fix: move React flushSync to microtask (#3188)
To avoid seeing the `Warning: flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.` error, we need to move the `flushSync()` code that avoids automatic batching to a microtask to not fire a lifecycle event `setState()` during rendering.

Fixes warning introduced in #2985
2022-09-13 20:36:35 +02:00
Cai Huanyu
f32293b0d5 fix: fix React Node View render problem in React 18 (#2985) 2022-08-22 14:41:26 +02:00
Dominik
8c6751f0c6 add precommit hook for linting and automatic eslint fixes + update eslint packages (#2862)
* chore: add precommit hook for eslint fixes, fix linting issues
* chore: add eslint import sort plugin
2022-06-08 14:10:25 +02:00
philippkuehn
7160b19c73 ci: fix code style linting errors 2022-01-03 13:29:53 +00:00
Luke Murray
64dfae8511 fix: change reactrenderer component type definition (#2327) 2022-01-03 14:28:31 +01:00
Philipp Kühn
c9dc1e1ec3 feat: add className option to ReactRenderer, see #2166 2021-11-18 09:58:38 +01:00
Ricardo Amaral
31d8ab3593 fix: Improve ReactRenderer types (#2011) 2021-10-11 20:37:35 +02:00
Philipp Kühn
2af187023d fix: fix editor type for ReactRenderer 2021-10-11 08:45:46 +02:00
Philipp Kühn
fe47c388ce fix: set correct component type for ReactRenderer, fix #1904 2021-09-18 20:45:00 +02:00
Philipp Kühn
b06a1f4364 refactoring 2021-09-07 23:20:46 +02:00
castroCrea
d1f2ad293f feat: add support for forwardRef component in reactRenderer (#1690, fix #1040) 2021-09-07 23:13:39 +02:00
Philipp Kühn
1c8ca95de2 refactor: remove AnyObject type 2021-04-21 09:43:31 +02:00
Philipp Kühn
bdb5d72495 feat: render wrapper element for inline node views as span, fix #242 2021-04-04 21:43:48 +02:00
Philipp Kühn
49fcf829f3 refactoring 2021-03-16 22:22:13 +01:00
Philipp Kühn
e765c8e981 refactoring 2021-03-15 09:00:44 +01:00
Philipp Kühn
385ee1d1f4 add ref to reactrenderer 2021-03-15 00:22:17 +01:00