SolidJSS
SolidJSโ€ข3y agoโ€ข
2 replies
fragerdaz

refetch() from child component

I createResource (with refetch option) in my parent component.
I render a child component in this parent and want to call the parent's refetch().
Obviously, that doesn't work because refetch() isn't defined in the child. How can I trigger the parent's refetch() from the child component?
Was this page helpful?