Baboluo
How to do an async API call in useEffect (T3 stack)
there's no server side state, its client side. the backend is an wraps an api that yields results of a machine learning model. thanks so far though, I don't want to waste your time so I'll just stick with this for now
16 replies
How to do an async API call in useEffect (T3 stack)
Unlike queries, mutations are typically used to create/update/delete data or perform server side-effects.
from the docs.
I don't do CRUD ops or perform server side-effects. just accessing a 3rd party API based on parameters from the user interface16 replies