mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): add util reference pipeline (#537)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
c11395ece1
commit
78112fbefd
@@ -19,6 +19,8 @@ const stateContext: StateContext<unknown> = {
|
||||
* const selectPlayback = createSelector(playbackSlice);
|
||||
* selectPlayback(store.state); // { paused, play, pause, ... } | undefined
|
||||
* ```
|
||||
*
|
||||
* @param slice - The feature slice to create a selector for.
|
||||
*/
|
||||
export function createSelector<S extends AnySlice>(slice: S): (state: object) => InferSliceState<S> | undefined {
|
||||
const initialState = slice.state(stateContext);
|
||||
|
||||
Reference in New Issue
Block a user