Skip to content

Revert "Update expectRemember to provide result" #1333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

rjrjr
Copy link
Contributor

@rjrjr rjrjr commented May 30, 2025

  • This change forced us to provide an expectRemember call for every remember call
  • Under STABLE_EVENT_HANDLERS that means every eventHandler call, clearly impractical
  • So we could change it to allow providing an option of returning alternative value from the remember call, but default to run the real calculation; but we have found no use cases for that
  • So were just going back to the original implementation

This reverts commit fa75ef8.

@rjrjr rjrjr marked this pull request as ready for review May 30, 2025 20:45
@rjrjr rjrjr requested review from zach-klippenstein and a team as code owners May 30, 2025 20:45
Copy link
Contributor

@steve-the-edwards steve-the-edwards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for getting this right again by talking me through it!

 - This change forced us to provide an `expectRemember` call for every `remember` call
 - Under `STABLE_EVENT_HANDLERS` that means every `eventHandler` call, clearly impractical
 - So we could change it to allow providing an option of returning alternative value from the remember call, but default to run the real calculation; but we have found no use cases for that
 - So were just going back to the original implementation

This reverts commit fa75ef8.
@steve-the-edwards steve-the-edwards merged commit d418203 into main Jun 2, 2025
44 checks passed
@steve-the-edwards steve-the-edwards deleted the ray/forget-it branch June 2, 2025 15:15
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