SolidJSS
SolidJSโ€ข11mo agoโ€ข
10 replies
gsoutz

How to force refetch on createResource trigger with same fetcher id

createResource(() => props.id, fetch_calculation)

when props.id triggers twice with the same value like 'abc' and 'abc', createResource doesn't refetch.
I want it to refetch to get a fresh clone of the fetch_calculation result.

A workaround would be to add a random value at the end of the id everytime and skip it in the calculations.
Was this page helpful?