skip to Main Content

Reactjs – Navigate from app.js, that is outside of the BrowserRouter wrapping

app.js import React from "react"; import { createRoot } from "react-dom/client"; import { Provider } from "react-redux"; import configureStore from "./store/configureStore"; import { startSetExpenses } from "./actions/expenses"; import 'normalize.css/normalize.css'; import './styles/styles.scss'; import AppRouter from "./routers/AppRouter"; import 'react-dates/lib/css/_datepicker.css'; import { auth…

VIEW QUESTION

Nextjs Firebase auth state not persisting

I have no idea why firebase auth is not persisting. My project is super simple so far, i have this sign in function. await signInWithEmailAndPassword(auth, email, password); And in the layout.tsx I have the onAuthStateChange const unsubscribe = onAuthStateChanged(auth, (user)…

VIEW QUESTION
Back To Top
Search