This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WEBVTT | |
00:00.000 --> 00:04.000 | |
Jika Anda nonton film ini, saya punya pesan sederhana. | |
00:05.000 --> 00:15.000 | |
Satu, tolong jadikan film ini sebagai landasan untuk Anda melakukan penghukuman. | |
00:16.000 --> 00:22.000 | |
Saya mau terlibat dalam film ini karena banyak orang yang akan makin paham |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 0. open a PowerShell as administrator | |
# 1. Enable WSL | |
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
# 2. Enable VM Platform | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
# 3. RESTART system, then open a PowerShell as administrator again | |
# MAKE SURE YOU HAVE RESTARTED BEFORE YOU CONTINUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import useSWR, { Key, useSWRConfig } from 'swr' | |
import { useEffect } from 'react' | |
export const useCachedState = <T>(key: Key, fallbackData?: T) => { | |
/// cache is used for subsequent uses | |
const { cache } = useSWRConfig() | |
/// if initial data is empty, use value from cache | |
const initialData = fallbackData ?? cache.get(key) | |
const { data, mutate } = useSWR(key, { |
NewerOlder