Updated create post so that toast notification correctly displays success response
Invalidated cache on profile page, so that when a new post is created, it shows on the profile page
Portions of this code that utilized AI generation
I had a conversation with ChatGPT about best practices for invalidating a cache. It took some prodding with some of my own background knowledge on React Queries' in-library invalidation function, but I was able to get some code to use. This code was the mapping function to invalidate the cache for each post, since I'm not familiar with typescript enough for mapping without additional research. The code it provided didn't work, but it gave me enough of a base to implement what I needed.
This is related to issue #112, #113
Description / Changes Made
Portions of this code that utilized AI generation
I had a conversation with ChatGPT about best practices for invalidating a cache. It took some prodding with some of my own background knowledge on React Queries' in-library invalidation function, but I was able to get some code to use. This code was the mapping function to invalidate the cache for each post, since I'm not familiar with typescript enough for mapping without additional research. The code it provided didn't work, but it gave me enough of a base to implement what I needed.
Link to Generated Code (If Applicable):
How to Test
Checklist