Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/docs/di/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function createAppContainer() {
}
```

After it you can get components from container in any order and each container will automatically resolves its dependencies.
Finally you can get components from container in any order and each component will automatically resolves its dependencies.

```ts title="./src/index.ts"
import { createAppContainer } from '#app/container';
Expand All @@ -72,4 +72,6 @@ const client = container.get(TOKEN.client);
const response = await client.get('/api/user/me');
```

Here `response` will have type `HttpClient` because we use `TOKEN.client` to get it.
In this code `client` will automatically have type `HttpClient` because we use `TOKEN.client` to get it.

Error will thrown if container has not bound providers for this token or some dependencies missed.
2 changes: 1 addition & 1 deletion docs/docs/react/use-navigate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function App() {
};

const handleBackClick = () => {
// navigating on history
// navigating over history
navigate.go(-1);
};

Expand Down
Loading