Skip to content

Conversation

@ra1028
Copy link
Owner

@ra1028 ra1028 commented Apr 22, 2024

Pull Request Type

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

Description

Multiple Attributes are available now and each of them has its own context type, so this PR unifies the context type into a single definition CurrentContext and deprecates existing ones.
UpdateContext was also a target of deprecation. However, I plan to deprecate Atom.updated(newValue:oldValue:context:) API and introduce a brand new way of handling side effects, UpdateContext itself will be deprecated along with it, not only for renaming. Since, protocol methods cannot be marked as deprecated, adding a deprecation message to UpdateContext would be helpful to make it noticeable.

@ra1028 ra1028 merged commit 240049d into main Apr 22, 2024
@ra1028 ra1028 deleted the refactor/deprecate-various-context-typealias branch April 22, 2024 12:01
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