Server action crashing
Unanswered
Spectacled Caiman posted this in #help-forum
Spectacled CaimanOP
Server action is causing whole website to crash when I am intentionally simulating offline internet from chrome developer tools. I am using server action on client component.
3 Replies
Barbary Lion
what does the code look like?
@Barbary Lion what does the code look like?
Spectacled CaimanOP
setGuildDataSource is server action
Barbary Lion
ah yeah well generally you dont want to update state on the event that state is updated. It looks like client-side value is changing which triggers the setGuildSource which is a server-side fetch. Feels like you need to rethink the flow of that or make your setGuildSource fetch on the client. If the fetch is based on client interactions it should be on the client.. if its initial state you need then fetching on server makes more sense.