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, );