Cycles in dependency graph
Hello fellow Solid devs, we need your help!
To make things short: Is there any way to safely recover from a cycle in solid's reactivity dependency graph?
I know that the simple answer is: Don't do cycles! But it's not that easy, let me explain:
We have been building an Excel-Like application and use Solid's reactivity for dependencies between the cells. So users are in full control what cells they reference within they formulas.
One option that we see is to manually inspect the cell references to look for cycles, but something that could again leverage Solid's built-in helpers would maybe be a simpler approach.
2 Replies
The issue here is not their code, but user-written "code" in the cells
I dont think you can get away with running the cell in order to figure out if there was a cycle, you'll need some kind of mechanism that does this without actually running the cell, unfortunately
That's what I thought... Thanks for chiming in anyways 🙂