I have an api with an autofetch. I want autofetch to trigger only when this rule is true. however, the api is autofetched even when simply one of the body parameters is changed. how to prevent the latter?
so I basically want the autofetch to trigger only when the formula is true. and not also when one of the parameters changes I initially solved this with on load/attribute change of the page, but thought this could be easier and I could make use of ssr
Erik Beuschau
9 days ago
Ah. I see. You could change the auto fetch formula to only be truthy when it’s evaluated during SSR. There’s a formula called “Is Server” for that I believe