The struggle is real, I ended up creating a function where it would fill the entire graph in one shot, which is a lot faster than caching single results.

https://github.com/coracle-social/coracle/blob/master/src/engine/people/utils.ts#L118

Reply to this note

Please Login to reply.

Discussion

Do you fill the graph once every time the app loads or did you find a way to cache the graph?

I populate it on every load