Skip to content

Commit

Permalink
Merge branch 'derived-diamond-problem' of https://github.com/TanStack…
Browse files Browse the repository at this point in the history
…/store into derived-diamond-problem
  • Loading branch information
crutchcorn committed Nov 29, 2024
2 parents 4be2a82 + ab0889d commit e96a781
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions docs/reference/classes/derived.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ new Derived<TState, TArr>(options): Derived<TState, TArr>

#### Defined in

[derived.ts:118](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L118)
[derived.ts:117](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L117)

## Properties

Expand All @@ -41,7 +41,7 @@ derivedToStore: Map<Derived<unknown, readonly any[]>, Set<Store<unknown, (cb) =>

#### Defined in

[derived.ts:102](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L102)
[derived.ts:100](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L100)

***

Expand All @@ -53,7 +53,7 @@ options: DerivedOptions<TState, TArr>;

#### Defined in

[derived.ts:72](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L72)
[derived.ts:70](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L70)

***

Expand All @@ -79,7 +79,7 @@ This is a record of stores, because derived stores are not able to write values

#### Defined in

[derived.ts:101](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L101)
[derived.ts:99](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L99)

## Accessors

Expand All @@ -97,7 +97,7 @@ get prevState(): TState

#### Defined in

[derived.ts:164](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L164)
[derived.ts:163](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L163)

***

Expand All @@ -115,7 +115,7 @@ get state(): TState

#### Defined in

[derived.ts:155](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L155)
[derived.ts:154](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L154)

## Methods

Expand Down Expand Up @@ -149,7 +149,7 @@ prevVal: undefined | NonNullable<TState>;

#### Defined in

[derived.ts:104](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L104)
[derived.ts:102](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L102)

***

Expand All @@ -169,7 +169,7 @@ mount(): () => void

#### Defined in

[derived.ts:168](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L168)
[derived.ts:167](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L167)

***

Expand All @@ -193,4 +193,4 @@ subscribe(listener): () => void

#### Defined in

[derived.ts:209](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L209)
[derived.ts:210](https://github.com/TanStack/store/blob/main/packages/store/src/derived.ts#L210)
10 changes: 5 additions & 5 deletions docs/reference/interfaces/derivedfnprops.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ id: DerivedFnProps
title: DerivedFnProps
---

# Interface: DerivedFnProps\<ArrType, UnwrappedArrT\>
# Interface: DerivedFnProps\<TArr, TUnwrappedArr\>

## Type Parameters

**ArrType** *extends* `ReadonlyArray`\<[`Derived`](../classes/derived.md)\<`any`\> \| [`Store`](../classes/store.md)\<`any`\>\> = `ReadonlyArray`\<`any`\>
**TArr** *extends* `ReadonlyArray`\<[`Derived`](../classes/derived.md)\<`any`\> \| [`Store`](../classes/store.md)\<`any`\>\> = `ReadonlyArray`\<`any`\>

**UnwrappedArrT** *extends* `UnwrapReadonlyDerivedOrStoreArray`\<`ArrType`\> = `UnwrapReadonlyDerivedOrStoreArray`\<`ArrType`\>
**TUnwrappedArr** *extends* `UnwrapReadonlyDerivedOrStoreArray`\<`TArr`\> = `UnwrapReadonlyDerivedOrStoreArray`\<`TArr`\>

## Properties

### currDepVals

```ts
currDepVals: UnwrappedArrT;
currDepVals: TUnwrappedArr;
```

#### Defined in
Expand All @@ -28,7 +28,7 @@ currDepVals: UnwrappedArrT;
### prevDepVals

```ts
prevDepVals: undefined | UnwrappedArrT;
prevDepVals: undefined | TUnwrappedArr;
```

#### Defined in
Expand Down

0 comments on commit e96a781

Please sign in to comment.