keepLatest: keep the initial value when it starts out loading - #202
Open
NullVoxPopuli-ai-agent wants to merge 2 commits into
Open
NullVoxPopuli-ai-agent wants to merge 2 commits into
NullVoxPopuli-ai-agent wants to merge 2 commits into
Conversation
If `when()` was true on the first run, keepLatest returned the value without saving it as `previous`. The next run with an empty value then returned undefined instead of the initial value. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
@NullVoxPopuli is attempting to deploy a commit to the universal-ember Team on Vercel. A member of the Team first needs to authorize it. |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If
when()is true on the first run,keepLatestreturns the value but does not save it asprevious. The next run with an empty value then returnsundefined, not the initial value.Found in limber: the REPL output uses
keepLatestto hold the last render while auto-render is paused. A page that loads paused went blank after the first edit.The new tests in
tests/*/tests/utils/keep-latest/js-test.tsandrendering-test.gtsfail before the fix and pass after it.🤖 Generated with Claude Code