dep-graph.core/depend throws an exception when a circular dependency would be created, and currently we're making no attempt to intercept the thrown exception – when a user types in something that would create a circular dependency between two or more cells, everything just stops working.
Instead, we should catch circular dependency exceptions and update the affected cells to contain errors. This prevents the app from crashing and gives us a way to inform the user more directly of what exactly went wrong.
dep-graph.core/depend
throws an exception when a circular dependency would be created, and currently we're making no attempt to intercept the thrown exception – when a user types in something that would create a circular dependency between two or more cells, everything just stops working.Instead, we should catch circular dependency exceptions and update the affected cells to contain errors. This prevents the app from crashing and gives us a way to inform the user more directly of what exactly went wrong.