saasquatch / bunshi

Molecule pattern for jotai, valtio, zustand, nanostores, xstate, react and vue
https://www.bunshi.org/
MIT License
230 stars 17 forks source link

Better circular dependency detection #6

Closed loganvolkers closed 9 months ago

loganvolkers commented 2 years ago

If there is a circular dependency between molecules, it will produce a maximum call stack exceeded error. We should detect these loops and provide a more useful error message to make it easier to resolve these.

loganvolkers commented 1 year ago

To consider for future implementation. Other DI frameworks can handle circular dependents using proxies.