FjordWarden
FjordWarden
Explore posts from servers
SSolidJS
Created by FjordWarden on 5/7/2024 in #support
Return non DOM element as component with hyper dom expressions
Ok, very cool. I've been studying your implementation and it has been a great help. It is one of those things I wonder how you could figure this out without an example. The name jsx-tokenizer is probably not the most descriptive either. I don't actually want to make a canvas api this was just the easiest way to describe the problem by analogy. At any rate thx for your help.
5 replies
SSolidJS
Created by FjordWarden on 4/13/2024 in #support
No Context when using hyper dom expressions
Ooh ffs, I look at this for two days, thx for ur help atleast
4 replies
SSolidJS
Created by FjordWarden on 10/26/2023 in #support
Use non breaking space with hyper dom expressions
Muchas gracias!
3 replies
SSolidJS
Created by FjordWarden on 8/23/2023 in #support
Remove element from store not working
Oh ok, thx for your help!
4 replies
SSolidJS
Created by FjordWarden on 5/16/2023 in #support
How to iterate over Object.entries()?
thx, that did the trick
4 replies
SSolidJS
Created by FjordWarden on 4/25/2023 in #support
Abort resource
Ok, my bad looks like I can just use: import {makeAbortable} from "@solid-primitives/resource";
2 replies
SSolidJS
Created by FjordWarden on 4/19/2023 in #support
Context undefined
Ok, I found the problem, just put the TokenProvider in useContext instead of TokenContext
6 replies
SSolidJS
Created by FjordWarden on 4/19/2023 in #support
Context undefined
Then I also have the TokenProvider in the root of my app:
render(() => (
<CounterProvider count={1}>
<TokenProvider>
<Router>
<div class="h-screen bg-neutral-900">
<Routes>
// ...
</Routes>
</div>
</Router>
</TokenProvider>
</CounterProvider>
), document.body);
render(() => (
<CounterProvider count={1}>
<TokenProvider>
<Router>
<div class="h-screen bg-neutral-900">
<Routes>
// ...
</Routes>
</div>
</Router>
</TokenProvider>
</CounterProvider>
), document.body);
6 replies
SSolidJS
Created by FjordWarden on 4/19/2023 in #support
Context undefined
I use it in a function like this:
function Login(props) {
const [searchParams, setSearchParams] = useSearchParams();
const [token, {login}] = useToken();
createEffect(()=>{if (searchParams.token) login(searchParams.token)})
function Login(props) {
const [searchParams, setSearchParams] = useSearchParams();
const [token, {login}] = useToken();
createEffect(()=>{if (searchParams.token) login(searchParams.token)})
6 replies
SSolidJS
Created by FjordWarden on 4/19/2023 in #support
Context undefined
The context providers works with the counter example from the docs, so maybe it could be something with the solid start localStorage
6 replies
SSolidJS
Created by FjordWarden on 1/28/2023 in #support
Strange React not defined error
Yea I've upgraded and downgraded vite and solid in all sort of combinations, at the end I just used one of the solidjs template, don't know what was wrong with my setup but that is what js development is in 2023
16 replies
SSolidJS
Created by FjordWarden on 1/28/2023 in #support
Strange React not defined error
seems to have something to do with vite and the vite solid plugin
16 replies
SSolidJS
Created by FjordWarden on 1/28/2023 in #support
Strange React not defined error
yes, well with jsx
16 replies
SSolidJS
Created by FjordWarden on 1/28/2023 in #support
Strange React not defined error
I dont have tsconfig ATM, does this matter?
16 replies
SSolidJS
Created by FjordWarden on 1/28/2023 in #support
Strange React not defined error
Vite is just this:
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';

export default defineConfig({
plugins: [solidPlugin()],
});
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';

export default defineConfig({
plugins: [solidPlugin()],
});
16 replies