Skip to content

Commit

Permalink
fix: Update AsyncBoundary link in BackupLoading component
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jan 6, 2025
1 parent 271545c commit 9036846
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-eagles-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@data-client/react': patch
---

Update async boundary link in BackupLoading component
4 changes: 2 additions & 2 deletions packages/react/src/components/BackupLoading.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function BackupLoadingNative() {
useEffect(() => {
console.warn(
`Uncaught suspense.
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks`,
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#boundaries`,
);
}, []);

Expand All @@ -23,7 +23,7 @@ Make sure to add your own Suspense boundaries: https://dataclient.io/docs/gettin
style={{ color: 'blue' }}
onPress={() =>
Linking.openURL(
'https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks',
'https://dataclient.io/docs/getting-started/data-dependency#boundaries',
)
}
>
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/BackupLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ export default function BackupLoading() {
useMemo(() => {
console.warn(
`Uncaught suspense.
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks`,
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#boundaries`,
);
}, []);

message = (
<>
<span>Uncaught Suspense.</span>
Try
<a href="https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks">
<a href="https://dataclient.io/docs/getting-started/data-dependency#boundaries">
adding a suspense boundary
</a>
</>
Expand Down

0 comments on commit 9036846

Please sign in to comment.