BrianCao
BrianCao
PD🧩 Plasmo Developers
Created by BrianCao on 3/9/2024 in #🔰newbie
tab page works with pnpm run dev but is blocked when i run pnpm build and pnpm package
When I upload my zipfile to plasmo itero, none of my users can access the tab page. however It works perfectly fine on my computer when I run pnpm run dev. What should I do? Ive been stuck on this issue for over a day now 😭
15 replies
PD🧩 Plasmo Developers
Created by BrianCao on 12/19/2023 in #🔰newbie
Confirmation email link for supabase template not working
No description
3 replies
PD🧩 Plasmo Developers
Created by BrianCao on 12/6/2023 in #🔰newbie
How do I retrieve data with Plasmo storage api
I have the following code in a JSX component
const [selectedDeck, setSelectedDeck] = useStorage("selectedDeck", null)
...
setSelectedDeck(deck)
const [selectedDeck, setSelectedDeck] = useStorage("selectedDeck", null)
...
setSelectedDeck(deck)
In my contents/highlighter.ts file i have the following code: const storage = new Storage()
class MediumHighlighter extends HTMLElement {
...
async highlightSelection() {
...
const selectedDeck: any = await storage.get("selectedDeck")
console.log("selectedDeck: " + selectedDeck)
...
}
}
class MediumHighlighter extends HTMLElement {
...
async highlightSelection() {
...
const selectedDeck: any = await storage.get("selectedDeck")
console.log("selectedDeck: " + selectedDeck)
...
}
}
I have already verified that in the JSX component that setSelectedDeck is setting selectedDeck properly but I get null when I log from my contents/highlighter.ts
4 replies
PD🧩 Plasmo Developers
Created by BrianCao on 11/13/2023 in #🔰newbie
How to access user object?
In my IndexPopup there is this hook: const [user, setUser] = useStorage<User>({ key: "user", instance: new Storage({ area: "local" }) }) // setUser is called below I have file in the tabs folder called QuizMe.tsx. In this file Im trying to access the user that was set in IndexPopup. How do I do this?
2 replies
PD🧩 Plasmo Developers
Created by BrianCao on 8/4/2023 in #🔰newbie
Icon is grey
No description
8 replies
PD🧩 Plasmo Developers
Created by BrianCao on 7/10/2023 in #🔰newbie
Is there documentation or a tutorial somewhere on how to use the useFirebaseDoc hook?
Im trying to read from cloud firestore. I have already managed to write data. Any help is appreciated!
2 replies