Closed hudy9x closed 1 year ago
This issue caused by nextjs compiling process In this case, the localstorage not exist on building process (build time) To fix that, move this code into useEffect
localstorage
useEffect
fixed
This issue caused by nextjs compiling process In this case, the
localstorage
not exist on building process (build time) To fix that, move this code intouseEffect