-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
… to useLocalStorage with a useReducer without overriding the local, however this should be erased when the login + database is implemented.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
import Image from "next/image"; | ||
import { SoundButton } from "./Components/TasksApp/SoundButtonTest"; | ||
import TaskApp from "./Components/TasksApp/TaskApp"; | ||
import dynamic from "next/dynamic"; | ||
|
||
|
||
//Using this just to be able to use localStorage is probably against the Geneva convention | ||
//but if I spend any more hours trying to figure out how to use localStorage | ||
//in Next.js with a useReducer hook I will kill myself | ||
const TaskAppNoSSR = dynamic(() => import("./Components/TasksApp/TaskApp"), { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bytevictor
Author
Owner
|
||
ssr: false, | ||
}); | ||
|
||
|
||
export default function Home() { | ||
return ( | ||
<main className="flex min-h-screen flex-col items-center lg:pt-0 lg:p-24 md:p-0 pt-0"> | ||
<TaskApp /> | ||
<TaskAppNoSSR /> | ||
</main> | ||
); | ||
} |
what does that even mean