Open toddjudd opened 2 years ago
By reusing the Poll context component, when the user is on /poll/[id] the delete button requests an update to the get polls query, but doesn't redirect back to the list of polls if you're already looking at the poll.
By reusing the Poll context component, when the user is on /poll/[id] the delete button requests an update to the get polls query, but doesn't redirect back to the list of polls if you're already looking at the poll.