goenning
goenning
PD🧩 Plasmo Developers
Created by sirhaveri on 7/30/2023 in #🔰newbie
Wrapper component for all content scripts?
Or if that’s not possible, would be neat to at least be able to share state between different contents
4 replies
PD🧩 Plasmo Developers
Created by sirhaveri on 7/30/2023 in #🔰newbie
Wrapper component for all content scripts?
I was about to ask the same question. Have you found an answer?
4 replies
SSolidJS
Created by goenning on 2/13/2023 in #support
how to use useParams inside a ContextProvider
apparently useParams is only available from inside the <Routes>?
5 replies
SSolidJS
Created by goenning on 12/14/2022 in #support
Looks like solid-router doesn't like encoded forward slashes as params?
I'm pretty sure this is a bug so I opened one https://github.com/solidjs/solid-router/issues/220
4 replies
SSolidJS
Created by goenning on 12/14/2022 in #support
Looks like solid-router doesn't like encoded forward slashes as params?
example that doesnt work: http://127.0.0.1:3000/hello%2Fworld/view
4 replies
SSolidJS
Created by phungleson on 12/14/2022 in #support
Vite v4 and You appear to have multiple instances of Solid
same here, works on [email protected], but not 4.0.1
6 replies
SSolidJS
Created by goenning on 12/7/2022 in #support
reactive initialValue on createResource
Just with the createResource?
12 replies
SSolidJS
Created by goenning on 12/7/2022 in #support
reactive initialValue on createResource
So basically there’s no way to do it without the effect?
12 replies
SSolidJS
Created by goenning on 12/7/2022 in #support
reactive initialValue on createResource
this works, but I suspect it might have some race conditions here in case the mutate happens after fetch:
const [namespaces, { mutate }] = createResource(contexts, fetchNamespaces);

createEffect(() => {
const ctxs = contexts();
mutate(getCachedNamespaces(ctxs));
});
const [namespaces, { mutate }] = createResource(contexts, fetchNamespaces);

createEffect(() => {
const ctxs = contexts();
mutate(getCachedNamespaces(ctxs));
});
12 replies