Link create-subscription doc to GH issue with de-opt explanation (#13187)
Brian Vaughn committed
Jul 10, 2018 at 14:00 UTC
e79366d5497e669af462b705303bee7edef02585
1 file changed
+1
-1
packages/create-subscription/README.md
+1
-1
@@ -15,7 +15,7 @@ Other cases have **better long-term solutions**:
15
16
The main motivation for `create-subscription` is to provide a way for library authors to ensure compatibility with React's upcoming asynchronous rendering mode. `create-subscription` guarantees correctness in async mode, accounting for the subtle bugs and edge cases that a library author might otherwise miss.
17
18
-However, it achieves correctness by sometimes de-opting to synchronous mode, obviating the benefits of async rendering. This is an inherent limitation of storing state outside of React's managed state queue and rendering in response to a change event.
18
+However, [it achieves correctness by sometimes de-opting to synchronous mode](https://github.com/facebook/react/issues/13186#issuecomment-403959161), obviating the benefits of async rendering. This is an inherent limitation of storing state outside of React's managed state queue and rendering in response to a change event.
19
20
The effect of de-opting to sync mode is that the main thread may periodically be blocked (in the case of CPU-bound work), and placeholders may appear earlier than desired (in the case of IO-bound work).
21