I spent an hour chasing down the cause of transiti...
# prisma-whats-new
j
I spent an hour chasing down the cause of transition framerate jank in a VueJS app at the weekend — it turned out it was caused by Graphcool consistently responding too quickly to queries, and triggering DOM updates midway through the transition 😄
a
Just create a dummy type with a 1000 records, and add that to your query, that'll slow it down just enough 😄
j
I decided to aggressively preload data and take advantage of the fast response. Now, when the user mouses over a card, I load all the data I'll need if they click to open.
I'm sure I'll regret this later, but for now it solves the jank, feels great, and saves me writing smarter code
¯\_(ツ)_/¯