Commit 77033ec
authored
fix(sdk): Fix circular dependency by removing redundant
## Summary
Fix a circular dependency in the SDK by removing a redundant `import
'./setupTsyringe'` statement from `PersistenceManager.ts`.
The circular dependency chain was:
1. `PersistenceManager.ts` imports `setupTsyringe.ts`
2. `setupTsyringe.ts` imports `Resends.ts` (to register it with
tsyringe)
3. `Resends.ts` transitively depends on `PersistenceManager` through the
dependency injection graph
Since `setupTsyringe.ts` is already imported at the application entry
point (`StreamrClient.ts`), the import in `PersistenceManager.ts` was
redundant and only served to create this circular reference.
## Changes
- Remove unnecessary `import './setupTsyringe'` from
`packages/sdk/src/PersistenceManager.ts`tsyringe setup import from PersistenceManager (#3367)1 parent 9a110cf commit 77033ec
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
0 commit comments