GabrielDSFS
GabrielDSFS
Explore posts from servers
PD🧩 Plasmo Developers
Created by GabrielDSFS on 6/21/2023 in #👟framework
How to keep the content.tsx open (or open again) when navigating to a new page?
I found a solution using the storage API @plasmohq/storage One question I have now, is how to use this way with default data const [data, setData] = useStorage({ key: "data", instance: localStorage }) I need it to be local, but I can't set the default value like I would useStorage("data", [])
6 replies