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 12bb010
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 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
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ exports[`<DataProvider /> should warn users about missing Suspense 1`] = `
[
[
"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",
],
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ exports[`<DataProvider /> should warn users about missing Suspense 1`] = `
[
[
"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",
],
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ declare class GCPolicy implements GCInterface {
paths?: EntityPath[];
}): () => () => void;
protected runSweep(): void;
/** Calls the callback when client is not 'busy' with high priority interaction tasks
*
* Override for platform-specific implementations
*/
protected idleCallback(callback: (...args: any[]) => void, options?: IdleRequestOptions): void;
}
declare class ImmortalGCPolicy implements GCInterface {
init(): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as _data_client_core from '@data-client/core';
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';
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';
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';
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';
import * as react_jsx_runtime from 'react/jsx-runtime';
import React, { JSX, Context } from 'react';

Expand Down Expand Up @@ -281,6 +281,7 @@ declare const internal_d_INVALID: typeof INVALID;
declare const internal_d_MemoCache: typeof MemoCache;
declare const internal_d_createReducer: typeof createReducer;
declare const internal_d_applyManager: typeof applyManager;
declare const internal_d_initManager: typeof initManager;
declare const internal_d_actions: typeof actions;
declare const internal_d_useCacheState: typeof useCacheState;
declare namespace internal_d {
Expand All @@ -290,6 +291,7 @@ declare namespace internal_d {
internal_d_MemoCache as MemoCache,
internal_d_createReducer as createReducer,
internal_d_applyManager as applyManager,
internal_d_initManager as initManager,
internal_d_actions as actions,
internal_d_useCacheState as useCacheState,
};
Expand Down

0 comments on commit 12bb010

Please sign in to comment.