datascript

BuddhiLW 2024-06-18T17:06:27.802049Z

Hey, I'm considering to use datascript to manage some data, like JWT tokens, in the store. What's the biggest difference of using this approach, instead of re-frame? In terms of security, performance, and use-cases? When should I store data in the big "db atom" that holds the states of the application, and datascript?

Niki 2024-06-18T19:19:53.840609Z

Convenience, mostly. Datascript is great if you have graph with many interconnected layers. E.g. movie-cinema-city-screening. Then you put it all into Datascript and navigate it almost like a graph single atom is great if you have very simple data model, 1 level deep, no inter-connections