dispatch is not accessible from useContext
问题 i have simple store import React, { createContext, useReducer } from "react"; import Reducer from "./UserReducer"; const initialState = { user: {}, error: null }; const Store = ({ children }) => { const [state, dispatch] = useReducer(Reducer, initialState); return ( <Context.Provider value={[state, dispatch]}> {children} </Context.Provider> ); }; export const Context = createContext(initialState); export default Store; i have wrapped my app with it like <Store> <ThemeProvider theme={Theme}>