Southclaws / storyden

With a fresh new take on traditional bulletin board forum software, Storyden is a modern, secure and extensible platform for building communities.
https://www.storyden.org/
Mozilla Public License 2.0
93 stars 11 forks source link

useCollectionItemMutations causes way too many re-renders #278

Closed Southclaws closed 1 week ago

Southclaws commented 2 weeks ago

this is because it mutates both the thread list and the collection list (with the has_item query)

need to figure out a more isolated way to do this that doesn't cause a ton of re-renders. Instead of mutating the full list, it should either delegate that to a future render (either setTimeout or something else) and the collection menu should probably hold its own state.