Skip to content

Conversation

@ra1028
Copy link
Owner

@ra1028 ra1028 commented Apr 18, 2024

Pull Request Type

  • Bug fix
  • New feature
  • Refactoring
  • Documentation update
  • Chore

Description

This PR adds a rather non scoped override way and changes the current behavior to a more explicit interface.
With the recent changes, nested AtomScopes is no longer inherits overrides from both AtomRoot, which made dependency injection for the entire app difficult.
This PR changes AtomRoot override to be inherited by all scopes.

Impact on Existing Code

  • AtomScope.override(_:) is deprecated and renamed to AtomScope.scopedOverride(_:).
  • Overriding in AtomRoot is now inherited by any scopes.

@ra1028 ra1028 merged commit 0da7155 into main Apr 18, 2024
@ra1028 ra1028 deleted the feat/scoped-override branch April 18, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants