Unexpected error in delete-image server action in Theo's modern react tutorial
So I was following Theo's react tutorial to build an image gallery, I'm facing an issue in the fullPageImgView modal, where, when the delete button is clicked ideally it should route to "/" path but for some reason it calls the getImage function which is only present in the fullPageImgView component which eventually returns the error I'm getting. in short fullPageImgView func is getting called again after deleteImage call resulting in getImage call
fullPageImgView.tsx component
src/server/queries.ts
added as a text file cause msg was getting too long
1 Reply
hey, did you end up discovering the issue here?
I'm encountering the same issue, and I'm not sure yet why the full page image component is rerendering (update: the modal page is, as are its children)