Eatham
Eatham
Explore posts from servers
SSolidJS
Created by Eatham on 11/25/2024 in #support
Use an action for a form but stay on the same page?
I am calling an action after submitting a form. I am navigated to https://action/1500021613?username= and then the page fails to load. I want the page to stay where it is after I submit. Thanks!
5 replies
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
CC#
Created by Eatham on 5/12/2023 in #help
❔ dotnet workload install errors.
Trying to use the uno framework. Using uno-check to download dependencies. When it executes dotnet workload install it breaks. Here is what is shown in console.
6 replies