Skip to content

Commit 12bb010

Browse files
committed
fix: Update AsyncBoundary link in BackupLoading component
1 parent 271545c commit 12bb010

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

.changeset/tricky-eagles-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@data-client/react': patch
3+
---
4+
5+
Update async boundary link in BackupLoading component

packages/react/src/components/BackupLoading.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function BackupLoadingNative() {
1010
useEffect(() => {
1111
console.warn(
1212
`Uncaught suspense.
13-
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks`,
13+
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#boundaries`,
1414
);
1515
}, []);
1616

@@ -23,7 +23,7 @@ Make sure to add your own Suspense boundaries: https://dataclient.io/docs/gettin
2323
style={{ color: 'blue' }}
2424
onPress={() =>
2525
Linking.openURL(
26-
'https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks',
26+
'https://dataclient.io/docs/getting-started/data-dependency#boundaries',
2727
)
2828
}
2929
>

packages/react/src/components/BackupLoading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ export default function BackupLoading() {
99
useMemo(() => {
1010
console.warn(
1111
`Uncaught suspense.
12-
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks`,
12+
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#boundaries`,
1313
);
1414
}, []);
1515

1616
message = (
1717
<>
1818
<span>Uncaught Suspense.</span>
1919
Try
20-
<a href="https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks">
20+
<a href="https://dataclient.io/docs/getting-started/data-dependency#boundaries">
2121
adding a suspense boundary
2222
</a>
2323
</>

packages/react/src/components/__tests__/__snapshots__/provider.native.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ exports[`<DataProvider /> should warn users about missing Suspense 1`] = `
4040
[
4141
[
4242
"Uncaught suspense.
43-
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks",
43+
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#boundaries",
4444
],
4545
]
4646
`;

packages/react/src/components/__tests__/__snapshots__/provider.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ exports[`<DataProvider /> should warn users about missing Suspense 1`] = `
4040
[
4141
[
4242
"Uncaught suspense.
43-
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#async-fallbacks",
43+
Make sure to add your own Suspense boundaries: https://dataclient.io/docs/getting-started/data-dependency#boundaries",
4444
],
4545
]
4646
`;

website/src/components/Playground/editor-types/@data-client/core.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ declare class GCPolicy implements GCInterface {
264264
paths?: EntityPath[];
265265
}): () => () => void;
266266
protected runSweep(): void;
267+
/** Calls the callback when client is not 'busy' with high priority interaction tasks
268+
*
269+
* Override for platform-specific implementations
270+
*/
271+
protected idleCallback(callback: (...args: any[]) => void, options?: IdleRequestOptions): void;
267272
}
268273
declare class ImmortalGCPolicy implements GCInterface {
269274
init(): void;

website/src/components/Playground/editor-types/@data-client/react.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as _data_client_core from '@data-client/core';
2-
import { NetworkManager, Manager, State, Controller, GCInterface, DevToolsManager, DevToolsConfig, SubscriptionManager, EndpointInterface, FetchFunction, Schema, ResolveType, Denormalize, DenormalizeNullable, Queryable, NI, SchemaArgs, NetworkError, UnknownError, ErrorTypes as ErrorTypes$1, __INTERNAL__, createReducer, applyManager, actions } from '@data-client/core';
3-
export { AbstractInstanceType, ActionTypes, Controller, DataClientDispatch, DefaultConnectionListener, Denormalize, DenormalizeNullable, DevToolsManager, Dispatch, EndpointExtraOptions, EndpointInterface, EntityInterface, ErrorTypes, ExpiryStatus, FetchAction, FetchFunction, GCInterface, GCOptions, GCPolicy, GenericDispatch, InvalidateAction, LogoutManager, Manager, Middleware, MiddlewareAPI, NetworkError, NetworkManager, Normalize, NormalizeNullable, PK, PollingSubscription, Queryable, ResetAction, ResolveType, Schema, SchemaArgs, SchemaClass, SetAction, SetResponseAction, State, SubscribeAction, SubscriptionManager, UnknownError, UnsubscribeAction, UpdateFunction, actionTypes } from '@data-client/core';
2+
import { NetworkManager, Manager, State, Controller, GCInterface, DevToolsManager, DevToolsConfig, SubscriptionManager, EndpointInterface, FetchFunction, Schema, ResolveType, Denormalize, DenormalizeNullable, Queryable, NI, SchemaArgs, NetworkError, UnknownError, ErrorTypes as ErrorTypes$1, __INTERNAL__, createReducer, applyManager, initManager, actions } from '@data-client/core';
3+
export { AbstractInstanceType, ActionTypes, Controller, CreateCountRef, DataClientDispatch, DefaultConnectionListener, Denormalize, DenormalizeNullable, DevToolsManager, Dispatch, EndpointExtraOptions, EndpointInterface, EntityInterface, ErrorTypes, ExpiryStatus, FetchAction, FetchFunction, GCInterface, GCOptions, GCPolicy, GenericDispatch, InvalidateAction, LogoutManager, Manager, Middleware, MiddlewareAPI, NetworkError, NetworkManager, Normalize, NormalizeNullable, PK, PollingSubscription, Queryable, ResetAction, ResolveType, Schema, SchemaArgs, SchemaClass, SetAction, SetResponseAction, State, SubscribeAction, SubscriptionManager, UnknownError, UnsubscribeAction, UpdateFunction, actionTypes } from '@data-client/core';
44
import * as react_jsx_runtime from 'react/jsx-runtime';
55
import React, { JSX, Context } from 'react';
66

@@ -281,6 +281,7 @@ declare const internal_d_INVALID: typeof INVALID;
281281
declare const internal_d_MemoCache: typeof MemoCache;
282282
declare const internal_d_createReducer: typeof createReducer;
283283
declare const internal_d_applyManager: typeof applyManager;
284+
declare const internal_d_initManager: typeof initManager;
284285
declare const internal_d_actions: typeof actions;
285286
declare const internal_d_useCacheState: typeof useCacheState;
286287
declare namespace internal_d {
@@ -290,6 +291,7 @@ declare namespace internal_d {
290291
internal_d_MemoCache as MemoCache,
291292
internal_d_createReducer as createReducer,
292293
internal_d_applyManager as applyManager,
294+
internal_d_initManager as initManager,
293295
internal_d_actions as actions,
294296
internal_d_useCacheState as useCacheState,
295297
};

0 commit comments

Comments
 (0)