<Alterion.Dev>
<Alterion.Dev>
Explore posts from servers
SSolidJS
Created by Anish Neupane on 3/2/2024 in #support
solidjs createResource doesn't show error when there was an error i.e 401 Invalid credentials
Size of axios v1.6.7 is 30.5 kB (minified), and 11.7 kB when compressed using GZIP. Size of itty-fetcher 0.9.4 is 1.3kB (minified), and 784B when compressed using GZIP.
9 replies
SSolidJS
Created by Anish Neupane on 3/2/2024 in #support
solidjs createResource doesn't show error when there was an error i.e 401 Invalid credentials
axios is massively overkill, consider using itty-fetcher instead
9 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
Every page in the reference section of the docs (and, to be precise, these are the new docs, that are still in development, so that might be part of the confusion) has the types at least at the top of the reference page
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
Now if you want to counter that with more anger, condescension, or arguments about how we're lazy but you're not, there's no point in continuing any sort of conversation with you. Take that as a warning for any future interaction you might want to have in this server.
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
And to expand on that, in terms of children, you'd do like the reference says, as linked above, with this example:
"use client";
import { JSX, createSignal } from "solid-js";
import "./Counter.css";

type CounterProps = {
start: number;
children: JSX.Element;
}

export default function Counter(props: CounterProps) {
const [count, setCount] = createSignal(props.start);
return (
<button class="increment" onClick={() => setCount(count() + 1)}>
Clicks: {count()}
{props.children}
</button>
);
}
"use client";
import { JSX, createSignal } from "solid-js";
import "./Counter.css";

type CounterProps = {
start: number;
children: JSX.Element;
}

export default function Counter(props: CounterProps) {
const [count, setCount] = createSignal(props.start);
return (
<button class="increment" onClick={() => setCount(count() + 1)}>
Clicks: {count()}
{props.children}
</button>
);
}
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
And as a specific example, this is a really common (and simple) pattern to use:
type CounterProps = {
start: number;
}

export default function Counter(props: CounterProps) {
const [count, setCount] = createSignal(props.start);
return (
<button class="increment" onClick={() => setCount(count() + 1)}>
Clicks: {count()}
</button>
);
}
type CounterProps = {
start: number;
}

export default function Counter(props: CounterProps) {
const [count, setCount] = createSignal(props.start);
return (
<button class="increment" onClick={() => setCount(count() + 1)}>
Clicks: {count()}
</button>
);
}
This look exactly like how I do it in react.
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
That's certainly an argument to be made but if you can't bother having a conversation where you read an explanation or a counter point, the discussion is going to be pretty one-sided. I did address your point, and offer a solution for you - it's a thing you'd have to do equally in any framework. I have to type props in react myself too, solidjs isn't any different.
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
There. De-escalation is part of a mod's tasks after all :iara_hugs_eri:
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
This isn't your business.
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
I would appreciate if other people not involved with this question wouldn't butt in with commentary.
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
"this makes me angry and I'm pissed off" is perfectly fine. "bro just figure it out here's a hint" isn't, really.
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
Anger is understandable, but it doesn't meant you need to be passive aggressive, and condescending, when you bring up issues.
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
Most people don't like to be angrily talked to in that way, I'm sure you don't either, and I don't know why you think this is appropriate behaviour towards others.
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
Please try to be less dismissive of the effort of all your peers, and be less aggressive towards people trying to help you, in the future. It goes a lot smoother that way.
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
No description
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
Open an issue in https://github.com/solidjs-community/solid-primitives/issues, perhaps that would yield better results
41 replies
SSolidJS
Created by gsoutz on 3/1/2024 in #support
solid primitives storage is bug
As for "storage bug", again, just pointing to source code saying it's not working isn't helpful, you have to actually demonstrate a bug in your own code, so that a developer might be able to reproduce it.
41 replies