Skip to content
Myr

Hotfix section linking (#3410)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Initial plan * Fix docs section anchors Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * docs: align toc anchors with slugify ids Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * docs: remove angle-bracket toc links Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * docs: strip backticks from anchor links Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * docs: convert code headings to clean ids Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * docs: replace html headings with markdown Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> * Update shallow.md * chore: run pnpm fix Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com> ---------

authored by Copilot · committed by GitHub · parent 5561e9b · Browse files · 8 files+19 added−15 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
  • Co-authored-by: dbritto-dev <1697714+dbritto-dev@users.noreply.github.com>
  • Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>

Diff stats

8 files+19 added−15 removed

  • other:+19 added−15 removed

8 files+19 added−15 removed

modified:docs/reference/apis/create-with-equality-fn.md+2 added-2 removed
16 unmodified lines
17const useSomeStore = createWithEqualityFn(stateCreatorFn, equalityFn)18```1920- [Types](#types)21 - [Signature](#createwithequalityfn-signature)21 - [Signature](#signature)22- [Reference](#reference)23- [Usage](#usage)24 - [Updating state based on previous state](#updating-state-based-on-previous-state)25 - [Updating Primitives in State](#updating-primitives-in-state)
1 unmodified line
27 - [Updating Arrays in State](#updating-arrays-in-state)28 - [Updating state with no store actions](#updating-state-with-no-store-actions)29 - [Subscribing to state updates](#subscribing-to-state-updates)30- [Troubleshooting](#troubleshooting)31 - [I’ve updated the state, but the screen doesn’t update](#ive-updated-the-state-but-the-screen-doesnt-update)31 - [I’ve updated the state, but the screen doesn’t update](#i’ve-updated-the-state,-but-the-screen-doesn’t-update)3233## Types3435### Signature
572 unmodified lines
modified:docs/reference/apis/create.md+2 added-2 removed
10 unmodified lines
11const useSomeStore = create(stateCreatorFn)12```1314- [Types](#types)15 - [Signature](#create-signature)15 - [Signature](#signature)16- [Reference](#reference)17- [Usage](#usage)18 - [Updating state based on previous state](#updating-state-based-on-previous-state)19 - [Updating Primitives in State](#updating-primitives-in-state)
1 unmodified line
21 - [Updating Arrays in State](#updating-arrays-in-state)22 - [Updating state with no store actions](#updating-state-with-no-store-actions)23 - [Subscribing to state updates](#subscribing-to-state-updates)24- [Troubleshooting](#troubleshooting)25 - [I’ve updated the state, but the screen doesn’t update](#ive-updated-the-state-but-the-screen-doesnt-update)25 - [I’ve updated the state, but the screen doesn’t update](#i’ve-updated-the-state,-but-the-screen-doesn’t-update)2627## Types2829### Signature
542 unmodified lines
modified:docs/reference/apis/shallow.md+3 added-3 removed
14 unmodified lines
15const equal = shallow(a, b)16```1718- [Types](#types)19 - [Signature](#shallow-signature)19 - [Signature](#signature)20- [Reference](#reference)21- [Usage](#usage)22 - [Comparing Primitives](#comparing-primitives)23 - [Comparing Objects](#comparing-objects)24 - [Comparing Sets](#comparing-sets)25 - [Comparing Maps](#comparing-maps)26- [Troubleshooting](#troubleshooting)27 - [Comparing objects returns `false` even if they are identical.](#comparing-objects-returns-false-even-if-they-are-identical)27 - [Comparing objects returns `false` even if they are identical](#comparing-objects-returns-false-even-if-they-are-identical)28 - [Comparing objects with different prototypes](#comparing-objects-with-different-prototypes)2930## Types31
122 unmodified lines
154```155156## Troubleshooting157158### Comparing objects returns `false` even if they are identical.158### Comparing objects returns `false` even if they are identical159160The `shallow` function performs a shallow comparison. A shallow comparison checks if the top-level161properties of two objects are equal. It does not check nested objects or deeply nested properties.162In other words, it only compares the references of the properties.
86 unmodified lines
modified:docs/reference/hooks/use-shallow.md+2 added
16 unmodified lines
17- [Usage](#usage)18 - [Writing a memoized selector](#writing-a-memoized-selector)19- [Troubleshooting](#troubleshooting)2021## Types2223### Signature2425```ts26useShallow<T, U = T>(selectorFn: (state: T) => U): (state: T) => U
243 unmodified lines
modified:docs/reference/hooks/use-store-with-equality-fn.md+4 added-2 removed
21 unmodified lines
22- [Reference](#reference)23- [Usage](#usage)24 - [Using a global vanilla store in React](#using-a-global-vanilla-store-in-react)25 - [Using dynamic vanilla stores in React](#using-dynamic-global-vanilla-stores-in-react)26 - [Using scoped (non-global) vanilla store in React](#using-scoped-non-global-vanilla-store-in-react)27 - [Using dynamic scoped (non-global) vanilla stores in React](#using-dynamic-scoped-non-global-vanilla-stores-in-react)26 - [Using scoped (non-global) vanilla store in React](<#using-scoped-(non-global)-vanilla-store-in-react>)27 - [Using dynamic scoped (non-global) vanilla stores in React](<#using-dynamic-scoped-(non-global)-vanilla-stores-in-react>)28- [Troubleshooting](#troubleshooting)2930## Types3132### Signature3334```ts35useStoreWithEqualityFn<T, U = T>(store: StoreApi<T>, selectorFn: (state: T) => U, equalityFn?: (a: T, b: T) => boolean): U
924 unmodified lines
modified:docs/reference/hooks/use-store.md+3 added-3 removed
13 unmodified lines
14- [Types](#types)15 - [Signature](#signature)16- [Reference](#reference)17- [Usage](#usage)18 - [Use a vanilla store in React](#use-a-vanilla-store-in-react)18 - [Use a vanilla store in React](#using-a-global-vanilla-store-in-react)19 - [Using dynamic vanilla stores in React](#using-dynamic-global-vanilla-stores-in-react)20 - [Using scoped (non-global) vanilla store in React](#using-scoped-non-global-vanilla-store-in-react)21 - [Using dynamic scoped (non-global) vanilla stores in React](#using-dynamic-scoped-non-global-vanilla-stores-in-react)20 - [Using scoped (non-global) vanilla store in React](<#using-scoped-(non-global)-vanilla-store-in-react>)21 - [Using dynamic scoped (non-global) vanilla stores in React](<#using-dynamic-scoped-(non-global)-vanilla-stores-in-react>)22- [Troubleshooting](#troubleshooting)2324## Types25
898 unmodified lines
modified:docs/reference/middlewares/combine.md+2 added-2 removed
modified:docs/reference/middlewares/devtools.md+1 added-1 removed
26 unmodified lines
27 - [Filtering actions with actionsDenylist](#filtering-actions-with-actionsdenylist)28 - [Cleanup](#cleanup)29- [Troubleshooting](#troubleshooting)30 - [Only one store is displayed](#only-one-store-is-displayed)31 - [Action names are labeled as 'anonymous'](#all-action-names-are-labeled-as-anonymous)31 - [Action names are labeled as 'anonymous'](#all-action-names-are-labeled-as-'anonymous')3233## Types3435### Signature
315 unmodified lines