PHP 8.2.30
Preview: useStore.d.ts Size: 1.06 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/react-redux/es/hooks/useStore.d.ts

import type { Context } from 'react';
import type { Action as BasicAction, AnyAction, Store } from 'redux';
import type { ReactReduxContextValue } from '../components/Context';
/**
 * Hook factory, which creates a `useStore` hook bound to a given context.
 *
 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
 * @returns {Function} A `useStore` hook bound to the specified context.
 */
export declare function createStoreHook<S = unknown, A extends BasicAction = AnyAction>(context?: Context<ReactReduxContextValue<S, A>>): <State = S, Action extends BasicAction<any> = A>() => Store<State, Action>;
/**
 * A hook to access the redux store.
 *
 * @returns {any} the redux store
 *
 * @example
 *
 * import React from 'react'
 * import { useStore } from 'react-redux'
 *
 * export const ExampleComponent = () => {
 *   const store = useStore()
 *   return <div>{store.getState()}</div>
 * }
 */
export declare const useStore: <State = unknown, Action extends BasicAction<any> = AnyAction>() => Store<State, Action>;

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
1.31 KB lrw-r--r-- 2026-02-28 00:30:04
Edit Download
1.30 KB lrw-r--r-- 2026-02-28 00:29:10
Edit Download
1.13 KB lrw-r--r-- 2026-02-28 00:30:06
Edit Download
1.31 KB lrw-r--r-- 2026-02-28 00:29:14
Edit Download
2.00 KB lrw-r--r-- 2026-02-28 00:30:08
Edit Download
5.10 KB lrw-r--r-- 2026-02-28 00:29:16
Edit Download
1.06 KB lrw-r--r-- 2026-02-28 00:30:08
Edit Download
1.09 KB lrw-r--r-- 2026-02-28 00:29:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).