Added profile data but clears after refresh
This commit is contained in:
+2
-1
@@ -31,8 +31,9 @@ function MyApp({ Component, pageProps }) {
|
||||
}
|
||||
};
|
||||
|
||||
// Attach the event handler when the component mounts
|
||||
useEffect(() => {
|
||||
|
||||
// Attach the event handler when the component mounts
|
||||
window.onpopstate = handlePopState;
|
||||
|
||||
// Clean up the event handler when the component unmounts
|
||||
|
||||
Reference in New Issue
Block a user