From f415af7327df3e8c78b85fe4efb4683771b5e79c Mon Sep 17 00:00:00 2001 From: David Khourshid <davidkpiano@gmail.com> Date: Fri, 25 Oct 2019 05:11:18 -0400 Subject: [PATCH] Update concurrent-mode-patterns.md (#2482) Fix typo: `timeout:` to `timeoutMs:` --- content/docs/concurrent-mode-patterns.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/concurrent-mode-patterns.md b/content/docs/concurrent-mode-patterns.md index 335572c6..8f2b1d3f 100644 --- a/content/docs/concurrent-mode-patterns.md +++ b/content/docs/concurrent-mode-patterns.md @@ -249,7 +249,7 @@ However, the experience feels really jarring. We were browsing a page, but it go function ProfilePage() { const [startTransition, isPending] = useTransition({ // Wait 10 seconds before fallback - timeout: 10000 + timeoutMs: 10000 }); const [resource, setResource] = useState(initialResource); @@ -289,7 +289,7 @@ This can lead to a lot of repetitive code across components. This is why **we ge ```js{7-9,20,24} function Button({ children, onClick }) { const [startTransition, isPending] = useTransition({ - timeout: 10000 + timeoutMs: 10000 }); function handleClick() {