Skip to content

Commit c49df38

Browse files
Copilotdbritto-dev
andauthored
Hotfix section linking (#3410)
* 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> --------- 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>
1 parent 5561e9b commit c49df38

8 files changed

Lines changed: 19 additions & 15 deletions

File tree

docs/reference/apis/create-with-equality-fn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const useSomeStore = createWithEqualityFn(stateCreatorFn, equalityFn)
1818
```
1919

2020
- [Types](#types)
21-
- [Signature](#createwithequalityfn-signature)
21+
- [Signature](#signature)
2222
- [Reference](#reference)
2323
- [Usage](#usage)
2424
- [Updating state based on previous state](#updating-state-based-on-previous-state)
@@ -28,7 +28,7 @@ const useSomeStore = createWithEqualityFn(stateCreatorFn, equalityFn)
2828
- [Updating state with no store actions](#updating-state-with-no-store-actions)
2929
- [Subscribing to state updates](#subscribing-to-state-updates)
3030
- [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)
3232

3333
## Types
3434

docs/reference/apis/create.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const useSomeStore = create(stateCreatorFn)
1212
```
1313

1414
- [Types](#types)
15-
- [Signature](#create-signature)
15+
- [Signature](#signature)
1616
- [Reference](#reference)
1717
- [Usage](#usage)
1818
- [Updating state based on previous state](#updating-state-based-on-previous-state)
@@ -22,7 +22,7 @@ const useSomeStore = create(stateCreatorFn)
2222
- [Updating state with no store actions](#updating-state-with-no-store-actions)
2323
- [Subscribing to state updates](#subscribing-to-state-updates)
2424
- [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)
2626

2727
## Types
2828

docs/reference/apis/shallow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ const equal = shallow(a, b)
1616
```
1717

1818
- [Types](#types)
19-
- [Signature](#shallow-signature)
19+
- [Signature](#signature)
2020
- [Reference](#reference)
2121
- [Usage](#usage)
2222
- [Comparing Primitives](#comparing-primitives)
2323
- [Comparing Objects](#comparing-objects)
2424
- [Comparing Sets](#comparing-sets)
2525
- [Comparing Maps](#comparing-maps)
2626
- [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)
2828
- [Comparing objects with different prototypes](#comparing-objects-with-different-prototypes)
2929

3030
## Types
@@ -155,7 +155,7 @@ shallow(mapLeft, mapRight) // -> true
155155

156156
## Troubleshooting
157157

158-
### Comparing objects returns `false` even if they are identical.
158+
### Comparing objects returns `false` even if they are identical
159159

160160
The `shallow` function performs a shallow comparison. A shallow comparison checks if the top-level
161161
properties of two objects are equal. It does not check nested objects or deeply nested properties.

docs/reference/hooks/use-shallow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const memoizedSelector = useShallow(selector)
1818
- [Writing a memoized selector](#writing-a-memoized-selector)
1919
- [Troubleshooting](#troubleshooting)
2020

21+
## Types
22+
2123
### Signature
2224

2325
```ts

docs/reference/hooks/use-store-with-equality-fn.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ const someState = useStoreWithEqualityFn(store, selectorFn, equalityFn)
2323
- [Usage](#usage)
2424
- [Using a global vanilla store in React](#using-a-global-vanilla-store-in-react)
2525
- [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>)
2828
- [Troubleshooting](#troubleshooting)
2929

30+
## Types
31+
3032
### Signature
3133

3234
```ts

docs/reference/hooks/use-store.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const someState = useStore(store, selectorFn)
1515
- [Signature](#signature)
1616
- [Reference](#reference)
1717
- [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)
1919
- [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>)
2222
- [Troubleshooting](#troubleshooting)
2323

2424
## Types

docs/reference/middlewares/combine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const nextStateCreatorFn = combine(initialState, additionalStateCreatorFn)
1919
```
2020

2121
- [Types](#types)
22-
- [Signature](#combine-signature)
22+
- [Signature](#signature)
2323
- [Reference](#reference)
2424
- [Usage](#usage)
25-
- [Creating a state with inferred types](#creating-a-state-wit-inferred-types)
25+
- [Creating a store with inferred types](#creating-a-store-with-inferred-types)
2626
- [Troubleshooting](#troubleshooting)
2727

2828
## Types

docs/reference/middlewares/devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const nextStateCreatorFn = devtools(stateCreatorFn, devtoolsOptions)
2828
- [Cleanup](#cleanup)
2929
- [Troubleshooting](#troubleshooting)
3030
- [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')
3232

3333
## Types
3434

0 commit comments

Comments
 (0)