Alex Lohr
Alex Lohr
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
Maybe such a solution will be part of https://oxc.rs/ at some point.
21 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
I think the solution will be something like using porffor to transpile plugin transformers into wasm to run them in a performant way directly from the rust code.
21 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
And context will also not work.
21 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
That is due to solid-js/h supports react-style JSX transforms, but does not create the reactive effects for props changes, so you need to do them manually.
21 replies
SSolidJS
Created by narmia on 6/22/2023 in #support
Anyone one have any insight on how to integrate a Meta/FB Pixel with a SolidStart site?
declare global {
interface Window {
fbq: [insert type here];
}
}
declare global {
interface Window {
fbq: [insert type here];
}
}
14 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
27 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
Right, I wanted to extend the type to be more precise, that's a leftover.
27 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
27 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
I think we should at least add a line to document this behavior.
27 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
It seems you are indeed correct. We need to fix the docs!
27 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
27 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
According to the docs, it isn't.
27 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
Is n really an accessor in this case?
27 replies
SSolidJS
Created by Eve on 10/15/2024 in #support
unwrap doesn't seem to do anything
Chrome console conveniently formats things that look like an array as arrays.
6 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
The benefit here is to test something that typescript cannot possibly discern, but you already know is true: that if the condition inside the when-prop is true, the value is present. So it is perfectly OK to use the exclamation mark in that case. Just don't go over board with it.
27 replies
SSolidJS
Created by Eve on 10/15/2024 in #support
unwrap doesn't seem to do anything
If you add something to the store it should become obvious.
6 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
And use "!" after the signal.
27 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
That should solve the type issue.
27 replies
SSolidJS
Created by gustavo.goretkin on 10/15/2024 in #support
Migrating from `<input>` to contentEditable and handle selection
I wrote a selection primitive: @solid-primitives/selection. Enjoy.
2 replies
SSolidJS
Created by Massukka on 10/16/2024 in #support
&& in <Show> when condition and typescript?
The problem is that the when prob is expecting a boolean and && will get you the first of its operators that is not falsy, so you are using a date or number here when a boolean is expected. Just wrap it in !!(...).
27 replies