Skip to content

Commit

Permalink
docs: fix component name, handlers to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
AkifumiSato committed Jul 24, 2022
1 parent 237532a commit 21e3d81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -73,10 +73,10 @@ to sync atoms with the browser URL using [Transit encoding](https://github.com/c
This should be a child element of [\<RecoilRoot>](https://recoiljs.org/docs/api-reference/core/RecoilRoot).

```typescript
function RecoilURLSyncJSONNext(props: {
function RecoilURLSyncTransitNext(props: {
storeKey?: string | undefined
location: LocationOption
handlers: ReadonlyArray<TransitHandler<any, any>>
handlers?: ReadonlyArray<TransitHandler<any, any>>
children: ReactNode
}): ReactNode
```
Expand Down Expand Up @@ -162,7 +162,7 @@ This should be a child element of [\<RecoilRoot>](https://recoiljs.org/docs/api-
```typescript
function RecoilHistorySyncTransitNext(props: {
storeKey?: string | undefined
handlers: ReadonlyArray<TransitHandler<any, any>>
handlers?: ReadonlyArray<TransitHandler<any, any>>
children: ReactNode
}): ReactNode
```
Expand Down

0 comments on commit 21e3d81

Please sign in to comment.