From 3f139b0ff2c111368fe1258e51d8717ba2e9d737 Mon Sep 17 00:00:00 2001 From: tcpdumppy <847462026@qq.com> Date: Tue, 4 Jun 2024 11:51:35 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: tcpdumppy <847462026@qq.com> --- docs/extensions/urql.mdx | 2 +- docs/guides/initialize-atom-on-render.mdx | 2 +- tests/react/async2.test.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/extensions/urql.mdx b/docs/extensions/urql.mdx index d0e5276f3f..369854bed9 100644 --- a/docs/extensions/urql.mdx +++ b/docs/extensions/urql.mdx @@ -207,7 +207,7 @@ function use(promise: Promise | any) { -### 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 `` and initialise clientAtom with the same urqlClient value you provided to UrqlProvider. diff --git a/docs/guides/initialize-atom-on-render.mdx b/docs/guides/initialize-atom-on-render.mdx index 8771356164..98fc9e20af 100644 --- a/docs/guides/initialize-atom-on-render.mdx +++ b/docs/guides/initialize-atom-on-render.mdx @@ -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). diff --git a/tests/react/async2.test.tsx b/tests/react/async2.test.tsx index bcfbe713a6..d380d3f6c5 100644 --- a/tests/react/async2.test.tsx +++ b/tests/react/async2.test.tsx @@ -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) @@ -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)