aws
Best way how to call sever function onClick (SOLVED)
olk giving this up will try qwik if there is better doc or will make esy api routes.
simple thing how to get data from server when i need it. page load / click button.
this gives me "AA" output server / client
and console error
caught (in promise) Error: Hydration Mismatch. Unable to find DOM nodes for hydration key: 0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-4-0
@brenelz16 replies
Best way how to call sever function onClick (SOLVED)
Hi thanks for reply basically what i need to do is
<button onClick={onClickHandler}>fetch</button>
const onClickHandler = () => {
//call server function that returns signed request parameters
// setStore(createResource(parametersFromServerFunction, async() => {await fetch ....})
}
something like this. since iam on router 0.8.5 i dont have actions available when i try updat to 0.10.5 I get TypeError: Comp is not a function
my dependencies
"dependencies": {
"@solidjs/meta": "^0.29.3",
"@solidjs/router": "^0.10.5",
"solid-js": "^1.8.7",
"solid-start": "^0.3.10"
}
}
i tried every single approach but still cant make this work
16 replies