Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #2602

Merged
merged 1 commit into from
Jun 5, 2024
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
2 changes: 1 addition & 1 deletion docs/extensions/urql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function use(promise: Promise<any> | any) {

<CodeSandbox id="5rwunq" />

### Refferencing the same instance of the client for both atoms and urql provider
### Referencing the same instance of the client for both atoms and urql provider

To ensure that you reference the same urqlClient object, be sure to wrap the root of your project in a `<Provider>` and initialise clientAtom with the same urqlClient value you provided to UrqlProvider.

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/initialize-atom-on-render.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function App() {
}
```

This behavior is due to our child components looking for the lowest commmon `Provider` ancestor to derive its value.
This behavior is due to our child components looking for the lowest common `Provider` ancestor to derive its value.

For more information on `Provider` behavior, please read the docs [here](../core/provider.mdx).

Expand Down
4 changes: 2 additions & 2 deletions tests/react/async2.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useAtom, useAtomValue, useSetAtom } from 'jotai/react'
import { atom } from 'jotai/vanilla'

describe('useAtom delay option test', () => {
it('suspend for Promise.resovle without delay option', async () => {
it('suspend for Promise.resolve without delay option', async () => {
const countAtom = atom(0)
const asyncAtom = atom((get) => {
const count = get(countAtom)
Expand Down Expand Up @@ -45,7 +45,7 @@ describe('useAtom delay option test', () => {
await findByText('count: 1')
})

it('do not suspend for Promise.resovle with delay option', async () => {
it('do not suspend for Promise.resolve with delay option', async () => {
const countAtom = atom(0)
const asyncAtom = atom((get) => {
const count = get(countAtom)
Expand Down
Loading