next.js Redux Error: could not find react-redux context value Ошибка
Primary tabs
Ошибка:
Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider>
Подключаю провайдер в шаблоне при этом вот так:
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<StoreProvider>
<body className={inter.className}>
<h1 style={{color: 'black'}}>Главный шаблон</h1>
{children}
</body>
</StoreProvider>
</html>
);
}
- Log in to post comments
- 470 reads