feat: test ISR

This commit is contained in:
Daniel Soares committed 2021-12-14 10:28:33 -03:00
1 parent aaaaedb73c
commit 2a1164d1fd
26 files changed
+295 -192

No files matched your search

+3 -1
View File
@@ -1,6 +1,8 @@
import type { Data } from '../types/Data'
const KEY = 'link-free-data'
export function getLocalStorageData() {
export function getLocalStorageData(): Data | null {
const data = process.browser && localStorage.getItem(KEY)
return data ? JSON.parse(data) : null
}