diff --git a/.changeset/real-ties-trade.md b/.changeset/real-ties-trade.md new file mode 100644 index 000000000000..56ae8e483dbf --- /dev/null +++ b/.changeset/real-ties-trade.md @@ -0,0 +1,8 @@ +--- +'@data-client/endpoint': patch +'@data-client/react': patch +'@data-client/graphql': patch +'@data-client/rest': patch +--- + +Update debugging link diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 6faa2e319f7b..76071f9a30b4 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -34,7 +34,7 @@ A clear and concise description of what you expected to happen. Include anything that could be related: - Console errors and warnings - [Network inspector](https://developer.chrome.com/docs/devtools/network/) screenshots -- [Browser Devtools](https://dataclient.io/docs/guides/debugging) screenshots or state and action dumps +- [Browser Devtools](https://dataclient.io/docs/getting-started/debugging) screenshots or state and action dumps **Minimum reproducable example or test case** For many cases reproducing the bug is fairly straightforward. However, if diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6ee70c56c2da..17a69d433ea6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ why you expected it. * Include any relevant stack traces or debugging output. * Ensure you captured relevant [network inspector](https://developer.chrome.com/docs/devtools/network/) screenshots -* Ensure [Browser Devtools](https://dataclient.io/docs/guides/debugging) screenshots or state and action dumps +* Ensure [Browser Devtools](https://dataclient.io/docs/getting-started/debugging) screenshots or state and action dumps ## Feature Requests diff --git a/README.md b/README.md index bc81a3f9e208..da49417d8b9a 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,7 @@ For the small price of 9kb gziped.    [๐ŸGet started now](https://da - [x] ๐Ÿ›‘ Automatic overfetching elimination - [x] โœจ Fast [optimistic updates](https://dataclient.io/rest/guides/optimistic-updates) - [x] ๐Ÿง˜ [Flexible](https://dataclient.io/docs/getting-started/resource) to fit any API design (one size fits all) -- [x] ๐Ÿ”ง [Debugging and inspection](https://dataclient.io/docs/guides/debugging) via browser extension +- [x] ๐Ÿ”ง [Debugging and inspection](https://dataclient.io/docs/getting-started/debugging) via browser extension - [x] ๐ŸŒณ Tree-shakable (only use what you need) - [x] ๐Ÿ” [Subscriptions](https://dataclient.io/docs/api/useSubscription) - [x] โ™ป๏ธ Optional [redux integration](https://dataclient.io/docs/guides/redux) diff --git a/docs/core/README.md b/docs/core/README.md index d824187643c0..438c94d9b5f9 100644 --- a/docs/core/README.md +++ b/docs/core/README.md @@ -502,7 +502,7 @@ Add the Redux DevTools for or [firefox extension](https://addons.mozilla.org/en-US/firefox/addon/reduxdevtools/) -Click the icon to open the [inspector](./guides/debugging.md), which allows you to observe dispatched actions, +Click the icon to open the [inspector](./getting-started/debugging.md), which allows you to observe dispatched actions, their effect on the cache state as well as current cache state. ## Mock data diff --git a/docs/core/api/DevToolsManager.md b/docs/core/api/DevToolsManager.md index 787ce573893b..29e597021686 100644 --- a/docs/core/api/DevToolsManager.md +++ b/docs/core/api/DevToolsManager.md @@ -95,4 +95,4 @@ ReactDOM.createRoot(document.body).render( ## More info -Using this Manager allows in browser [debugging and store inspection](../guides/debugging). +Using this Manager allows in browser [debugging and store inspection](../getting-started/debugging.md). diff --git a/docs/core/concepts/managers.md b/docs/core/concepts/managers.md index cb1d5e0230b6..6b617bab8c67 100644 --- a/docs/core/concepts/managers.md +++ b/docs/core/concepts/managers.md @@ -16,7 +16,7 @@ import StackBlitz from '@site/src/components/StackBlitz'; # Managers and Middleware Reactive Data Client uses the [flux store](https://facebookarchive.github.io/flux/docs/in-depth-overview/) pattern, which is -characterized by an easy to [understand and debug](../guides/debugging.md) the store's [undirectional data flow](). State updates are performed by a [reducer function](https://github.com/reactive/data-client/blob/master/packages/core/src/state/reducer/createReducer.ts#L19). +characterized by an easy to [understand and debug](../getting-started/debugging.md) the store's [undirectional data flow](). State updates are performed by a [reducer function](https://github.com/reactive/data-client/blob/master/packages/core/src/state/reducer/createReducer.ts#L19). -Data Client Debugging Guide ยป +Data Client Debugging Guide ยป diff --git a/docs/core/guides/debugging.md b/docs/core/getting-started/debugging.md similarity index 100% rename from docs/core/guides/debugging.md rename to docs/core/getting-started/debugging.md diff --git a/packages/endpoint/src/schemas/Entity.ts b/packages/endpoint/src/schemas/Entity.ts index 76a31b4b48a9..557520919440 100644 --- a/packages/endpoint/src/schemas/Entity.ts +++ b/packages/endpoint/src/schemas/Entity.ts @@ -89,7 +89,7 @@ export default abstract class Entity extends EntitySchema(EmptyBase) { This is likely due to a malformed response. Try inspecting the network response or fetch() return value. -Or use debugging tools: https://dataclient.io/docs/guides/debugging +Or use debugging tools: https://dataclient.io/docs/getting-started/debugging Learn more about schemas: https://dataclient.io/docs/api/schema If this is a mistake, you can disable this check by setting static automaticValidation = 'silent' diff --git a/packages/endpoint/src/schemas/EntitySchema.ts b/packages/endpoint/src/schemas/EntitySchema.ts index d56bf0e8c1f9..159f582bfd86 100644 --- a/packages/endpoint/src/schemas/EntitySchema.ts +++ b/packages/endpoint/src/schemas/EntitySchema.ts @@ -240,7 +240,7 @@ export default function EntitySchema( This is likely due to a malformed response. Try inspecting the network response or fetch() return value. - Or use debugging tools: https://dataclient.io/docs/guides/debugging + Or use debugging tools: https://dataclient.io/docs/getting-started/debugging Learn more about primary keys: https://dataclient.io/rest/api/Entity#pk Entity: ${this.key} diff --git a/packages/endpoint/src/schemas/Invalidate.ts b/packages/endpoint/src/schemas/Invalidate.ts index 6ea4270f59e3..9f292780969d 100644 --- a/packages/endpoint/src/schemas/Invalidate.ts +++ b/packages/endpoint/src/schemas/Invalidate.ts @@ -60,7 +60,7 @@ export default class Invalidate< This is likely due to a malformed response. Try inspecting the network response or fetch() return value. - Or use debugging tools: https://dataclient.io/docs/guides/debugging + Or use debugging tools: https://dataclient.io/docs/getting-started/debugging Learn more about schemas: https://dataclient.io/docs/api/schema Invalidate(Entity): Invalidate(${this._entity.key}) diff --git a/packages/react/README.md b/packages/react/README.md index 3e4d0812d26a..e4b6a235a8ad 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -226,7 +226,7 @@ For the small price of 9kb gziped.    [๐ŸGet started now](https://da - [x] ๐Ÿ›‘ Automatic overfetching elimination - [x] โœจ Fast [optimistic updates](https://dataclient.io/rest/guides/optimistic-updates) - [x] ๐Ÿง˜ [Flexible](https://dataclient.io/docs/getting-started/resource) to fit any API design (one size fits all) -- [x] ๐Ÿ”ง [Debugging and inspection](https://dataclient.io/docs/guides/debugging) via browser extension +- [x] ๐Ÿ”ง [Debugging and inspection](https://dataclient.io/docs/getting-started/debugging) via browser extension - [x] ๐ŸŒณ Tree-shakable (only use what you need) - [x] ๐Ÿ” [Subscriptions](https://dataclient.io/docs/api/useSubscription) - [x] โ™ป๏ธ Optional [redux integration](https://dataclient.io/docs/guides/redux) diff --git a/packages/react/src/components/DevToolsButton.tsx b/packages/react/src/components/DevToolsButton.tsx index 9d50510f279b..7c5dc12950c3 100644 --- a/packages/react/src/components/DevToolsButton.tsx +++ b/packages/react/src/components/DevToolsButton.tsx @@ -33,7 +33,10 @@ export default function DevToolsButton({
DevTools{' '} - + โ„น๏ธ
diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 64198870ff65..0e5ae7d27e7f 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -342,6 +342,10 @@ const config: Config = { to: '/docs/api/ExternalDataProvider', from: ['/docs/api/ExternalCacheProvider'], }, + { + to: '/docs/getting-started/debugging', + from: ['/docs/guides/debugging'], + }, ...gqlRedirects, ], }, diff --git a/website/sidebars.json b/website/sidebars.json index 73ebf9756d83..94778dc0e394 100644 --- a/website/sidebars.json +++ b/website/sidebars.json @@ -27,7 +27,7 @@ }, { "type": "doc", - "id": "guides/debugging" + "id": "getting-started/debugging" } ] },