Eatham
Eatham
Explore posts from servers
SSolidJS
Created by Eatham on 11/18/2024 in #support
`useNavigate` inside an `action`?
I am trying to use useNavigate in an action when my form is submitted. However my page isn't navigating. No errors appear in console.
const some_action = action(async (data) => {useNavigate()("/")})

...
<form action={some_action}>
const some_action = action(async (data) => {useNavigate()("/")})

...
<form action={some_action}>
4 replies
SSolidJS
Created by Eatham on 11/9/2024 in #support
Jetbrains IntelliSense doesn't work
No description
5 replies
SSolidJS
Created by Eatham on 5/2/2024 in #support
Kobalte 13.x update issue
No description
3 replies
SSolidJS
Created by Eatham on 4/23/2024 in #support
How to call `useNavigate` outside of router
No description
59 replies
SSolidJS
Created by Eatham on 4/16/2024 in #support
Transparent Border styling is weird
No description
25 replies
SSolidJS
Created by Eatham on 4/16/2024 in #support
Using Kobalte, am trying to use the Tooltip. But I don't like how the trigger is a button.
Here is the source code to the trigger: https://github.com/kobaltedev/kobalte/blob/main/packages/core/src/tooltip/tooltip-trigger.tsx The trigger is the object the "triggers" the tooltip to appear. However I want to have the tooltip work on my own components and don't want to have my own component within a button. So I decided to try and modify kobalte's code to work with my own. However the problem now is that I don't know the best way to implement it so that the tooltip works with anything I set to be the trigger. Thanks
5 replies
SSolidJS
Created by Eatham on 4/16/2024 in #support
Difference between using `const` and `function` to declare a function
I am relatively new to JavaScript and in my time learning I have noticed that people decalare their functions/components using const and also function. E.g. Using function
function MyComponent(props) {
return <div></div>;
}
function MyComponent(props) {
return <div></div>;
}
And using const:
const MyComponent = (props) => {
return <div></div>;
}
const MyComponent = (props) => {
return <div></div>;
}
What are the differences between the two and why would I use one over the other? Thanks 🙂
3 replies
SSolidJS
Created by Eatham on 4/1/2024 in #support
What do you recommend for drag and drop capabilities?
I am creating an app using tauri and solid for my frontend. And am wanting to have the ability to drag and drop between windows. Currently my best option is to use the HTML Drag and Drop API to transfer data across different pages (each window is a different site). The api is good for transfering data, but it doesn't look that good compared to what you get from DND libraries. The downside to those libraries is that you can't transfer data between sites (could be wrong).
5 replies
SSolidJS
Created by Eatham on 3/12/2024 in #support
Was watching Theo's video and wondered if solid had a good way to do this
https://youtu.be/jYV1VDhw7E8?t=447 It involves saving a state when a components moves position in the DOM. Theo will explain it way better than I ever could
9 replies