invalidateAtomicProp
functionsignature
invalidateAtomicProp(reducer, property, extraKey?): voidInvalidates the Suspense cache entry for a specific reducer.property path.
Parameters
| Name | Type | Description |
|---|---|---|
reducer | string | Reducer (slice) name. |
| Name | Type | Description |
|---|---|---|
property | string | Dotted property path. |
| Name | Type | Description |
|---|---|---|
extraKey? | string | Optional extra key if the hook was created with options.key. |
Returns
void
Example
example
invalidateAtomicProp('users', 'byId.123.name');