Skip to content

Commit

Permalink
chore: fix some comments (#2602)
Browse files Browse the repository at this point in the history
Signed-off-by: tcpdumppy <[email protected]>
  • Loading branch information
tcpdumppy authored Jun 5, 2024
1 parent 2d3a89e commit b5b9b77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit b5b9b77

Please sign in to comment.