MCPcopy Create free account
hub / github.com/flatlogic/react-material-admin / useUserDispatch

Function useUserDispatch

src/context/UserContext.js:91–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91function useUserDispatch() {
92 let context = React.useContext(UserDispatchContext);
93 if (context === undefined) {
94 throw new Error('useUserDispatch must be used within a UserProvider');
95 }
96 return context;
97}
98
99export { UserProvider, useUserState, useUserDispatch, loginUser, signOut };
100

Callers 4

Header.jsFile · 0.90
Reset.jsFile · 0.90
VerifyFunction · 0.90
Login.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected