tjohnson1106 / saga-beta-V1

saga-stack-merged
1 stars 0 forks source link

UI Icon Will Not Change When Like Boolean is Pressed #29

Closed tjohnson1106 closed 6 years ago

tjohnson1106 commented 6 years ago

When a story is liked the it should show a filled in ios-heart and when un-liked it should show only the outline. The back end is working by creating and removing the boolean value in the database and results log to the console fine. It is returned by a conditional returning a choice of Ionicons via a function. This could be the result of not having apollo cache updating implemented. (though I don't think so) I will create an issue for that but this issue won't be dependent unless it's determined that is the case.

tjohnson1106 commented 6 years ago

Sure enough, it did seem to be a caching issue. By updating Apollo cache and implementing read write fragmenting the conditional render function is now properly being called displayed based on the status of the like. Closing issue.