attempting to do:
use an apollo-server-micro query, to invoke a prisma.users.findMany() promise that returns userdata from postgres DB.
This data set as @redux/toolkit state to be used through app, in this case to check if a username exists for signup process
error:
1 of 1 unhandled error
Server Error
Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider>
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source
pages/_app.tsx (41:30) @ App
39 |
40 | export default function App({ Component, pageProps }: AppProps) {
> 41 | const dispatch = useDispatch()
| ^
42 |
43 |
44 |
Show collapsed frames
proposed approach:
can perform the same functionality in /logInOutGoogle.tsx
but this worked in react-express no problem with react-redux & connect-redux
attempting to do: use an apollo-server-micro query, to invoke a prisma.users.findMany() promise that returns userdata from postgres DB. This data set as @redux/toolkit state to be used through app, in this case to check if a username exists for signup process
error:
proposed approach: can perform the same functionality in /logInOutGoogle.tsx but this worked in react-express no problem with react-redux & connect-redux