Jules
Jules
Explore posts from servers
SSolidJS
Created by aryzing on 10/20/2023 in #support
What's the most idiomatic way of forwarding an onClick event handler?
Yeah strangely it is - I don't know why I don't see the same error, am using plugin:solid/typescript
13 replies
SSolidJS
Created by Jules on 10/20/2023 in #support
createSelection() primitive odd behaviour in contentEditable div's
because the comlpexity can be skipped if all you need is selectionStart and selectionEnd to achieve the use case I am working with but that somehow doesn't exist on a div object with contentEditable={true}
9 replies
SSolidJS
Created by Jules on 10/20/2023 in #support
createSelection() primitive odd behaviour in contentEditable div's
you mean the browser API? the complexity makes sense but why it differs needlessly between elements and browsers is what is frustrating to me. Though I suppose to some degree all web APIs do
9 replies
SSolidJS
Created by Jules on 10/20/2023 in #support
createSelection() primitive odd behaviour in contentEditable div's
oh wow I wasn't expecting the author of this primitive to stumble upon this - I am willing to help out with a fix, I assume it wasn't intended behaviour but rather just an edge case. Do you have any ideas better than walking the DOM to determine whether the selection spans multiple Nodes? I was getting frustrated with my attempts since it seems like there should just be a browser API for this......
9 replies
SSolidJS
Created by aryzing on 10/20/2023 in #support
What's the most idiomatic way of forwarding an onClick event handler?
I use this method with no trouble, or linter errors, thus far, though I have no idea if it is the most idiomatic solution:
export const Button = (props: {
class?: string;
onClick?: (event: MouseEvent) => void;
children?: JSX.Element | string;
}) => {
// much of the functionality omited for brevity
return (
<button onClick={props.onClick} class={cn('btn', styles, props.class)}>{props.children}</button>
);
};
export const Button = (props: {
class?: string;
onClick?: (event: MouseEvent) => void;
children?: JSX.Element | string;
}) => {
// much of the functionality omited for brevity
return (
<button onClick={props.onClick} class={cn('btn', styles, props.class)}>{props.children}</button>
);
};
13 replies
SSolidJS
Created by dmayo2 on 10/17/2023 in #support
direct link?
Can we take a look at your vite.config.ts? that would be helpful in diagnosing your issue, also any logs during the Netlify build process or http logs for the route you're trying to hit. In general though, @bigmistqke is trying to get you setup with the vite adapter for Netlify so that your build is done correctly and thus Netlify's servers will be looking in the place where your build is outputted. Here is an example config, and basically what yours should look like:
import solid from "solid-start/vite";
import { defineConfig } from "vite";
import netlify from "solid-start-netlify";

export default defineConfig(() => {
return {
plugins: [
solid({
ssr: true,
adapter: netlify({
edge: true,
}),
}),
],
};
});
import solid from "solid-start/vite";
import { defineConfig } from "vite";
import netlify from "solid-start-netlify";

export default defineConfig(() => {
return {
plugins: [
solid({
ssr: true,
adapter: netlify({
edge: true,
}),
}),
],
};
});
17 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
but that is only in the very beginning stages
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
One aspect of it that will be though is a cheminformatics API
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
it's the only not open-source of the list XD
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
I might be able to show you, it might require some staging first
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
though they don't have an officially supported solid package
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
but Lucia Auth did almost exactly what I envisioned, basically AuthJs but less opinionated
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
I also started to look into developing an auth library
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
and I am working on a personal project where I resell hobby chemistry/experimental lab equipment and supplies and merch on an e-commerce platform, but I am doing a really thorough job of the e-commerce platform so I can reuse the code for future endeavors or an open-source thing again
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
I am working on the aforementioned blog cms platform open-source solidjs ecosystem
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
Of course
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
yeah I get it, hopefully everything is on time and you're making good money on the project then
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
yeah I have never worked with Remix
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
Ohhhh interesting okay
115 replies
SSolidJS
Created by Merlin on 8/8/2023 in #support
Refetching Route Data with Solid Router
are you going to monetize or open-source
115 replies