Skip to content

Conversation

ra1028
Copy link
Owner

@ra1028 ra1028 commented Aug 21, 2021

Breaking changes

  • Introduce HookUpdateStrategy instead of HookComputation. HookUpdateStrategy doesn't have .always but now nil can be used instead. nil is a default value for useEffect.
  • Rename Hook.makeValue(coordinator:) to Hook.value(coordinator:).
  • Rename Hook.compute(coordinator:) to Hook.updateState(coordinator:).
  • Rename Hook.shouldDeferredCompute to Hook.shouldDeferredUpdate.

@ra1028 ra1028 force-pushed the feat/update-strategy branch from 6de30e9 to 835d26d Compare August 21, 2021 18:43
@ra1028 ra1028 merged commit e245ff3 into main Aug 21, 2021
@ra1028 ra1028 deleted the feat/update-strategy branch August 21, 2021 18:49
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.

1 participant