Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbritto-dev committed Apr 25, 2024
1 parent 0746ab1 commit adec185
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions docs/reference/create-with-equality-fn.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,26 @@ title: createWithEqualityFn
description:
nav: 203
---

# createWithEqualityFn

`createWithEqualityFn` lets you create a store with a equality function from
the beginning and bound store to a custom hook. Lorem ipsum dolor sit amet
consectetur, adipisicing elit. Labore repellendus pariatur suscipit quidem hic
ullam blanditiis ut repudiandae ab unde dolores, tempore expedita ipsam minus reprehenderit voluptas soluta sed debitis!

::: code-group

```ts [TypeScript]
createWithEqualityFn<T>()(initializer: StateCreator<T, [], []>, equalityFn: (a: T, b: T) => boolean): UseBoundStore<StoreApi<T>>
```

```js [JavaScript]
createWithEqualityFn(initializer, equalityFn)
```

:::

- [Reference](#reference)
- [Usage](#usage)
- Troubleshooting(#troubleshooting)
2 changes: 1 addition & 1 deletion docs/reference/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nav: 204

# create

`create` let's create a store and bound store to a hook custom. Lorem ipsum dolor sit, amet
`create` lets you create a store and bound store to a hook custom. Lorem ipsum dolor sit, amet
consectetur adipisicing elit. Consequuntur dolorum quaerat hic ipsum, perspiciatis enim laudantium
minima porro tempore laboriosam praesentium obcaecati modi nesciunt voluptatibus at fugit libero
iusto cum.
Expand Down

0 comments on commit adec185

Please sign in to comment.