UNLV-CS472-672 / 2024-S-GROUP5-Munch

The Munch app is a social platform where users create profiles by selecting preferred foods.
1 stars 11 forks source link

Create Page Bug Fix #114

Closed StacL closed 3 months ago

StacL commented 3 months ago

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

  1. Log in
  2. Create a post

Checklist