Hey all,
I’m trying to add some nice animations to my meteor/react/v4-material-ui app.
I’d like to animate appearance and removal of documents (some accordion style flip) in my collections, which are rendered as rows in a table and get synced via useTracker
from my meteor server.
What i tried so far:
-
react-flip-move which is awesome for lists and grids, but fails on tables.
-
Also tried using hooks like in this CodeSandbox to control whats going on during mount and unmount of the react components, which fails due to the fact that the unmount-hook not gets called once a document is removed on server side
-
Tried to get control on added and removed items observing the corresponding cursors, which might work out if documents get added (though I can’t find an efficient way on getting only new items), but if removed I really can’t figure out how to prevent populating the new data via useTracker (and hence directly removing all items before any animation can begin)
The last two tries make me think that this is meteor specific and not solely on reacts side. Also checked more google and forum entries, but most recent ones covering that topic (aside from react) are like more than 5 years old, so…
Any ideas highly appreciated.