From 2429966d53c6f63c4685988881558597bf1caa50 Mon Sep 17 00:00:00 2001 From: Nathaniel Tucker Date: Wed, 27 Sep 2023 12:38:47 -0500 Subject: [PATCH] docs: Fix typo in redux guide --- docs/core/guides/redux.md | 4 ++-- packages/rest/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/core/guides/redux.md b/docs/core/guides/redux.md index 6e68f5abdba7..1d9c6b967dc7 100644 --- a/docs/core/guides/redux.md +++ b/docs/core/guides/redux.md @@ -85,7 +85,7 @@ const selector = state => state; // managers optionally provide initialization subroutine for (const manager of [networkManager, subscriptionManager]) { - managers[i].init?.(selector(store.getState())); + manager.init?.(selector(store.getState())); } ReactDOM.render( @@ -139,7 +139,7 @@ const selector = state => state; // managers optionally provide initialization subroutine for (const manager of [networkManager, subscriptionManager]) { - managers[i].init?.(selector(store.getState())); + manager.init?.(selector(store.getState())); } ReactDOM.render( diff --git a/packages/rest/README.md b/packages/rest/README.md index 13db9e9914c5..5f142c7da50c 100644 --- a/packages/rest/README.md +++ b/packages/rest/README.md @@ -122,7 +122,7 @@ const deleteTodo = data => ctrl.fetch(TodoResource.delete, { id }); ```tsx const queryRemainingTodos = new Query( - TodoResource.getList, + TodoResource.getList.schema, (entries) => entries.filter((todo) => !todo.completed).length, );