Skip to content

getPromiseState#154

Merged
NullVoxPopuli merged 13 commits intomainfrom
getPromiseState
Jul 19, 2025
Merged

getPromiseState#154
NullVoxPopuli merged 13 commits intomainfrom
getPromiseState

Conversation

@NullVoxPopuli
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
reactive ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2025 7:24pm

@NullVoxPopuli NullVoxPopuli merged commit 28101d8 into main Jul 19, 2025
11 of 14 checks passed
@NullVoxPopuli NullVoxPopuli deleted the getPromiseState branch July 19, 2025 19:29
@github-actions github-actions Bot mentioned this pull request Jul 19, 2025
@SergeAstapov
Copy link
Copy Markdown
Contributor

@NullVoxPopuli out of curiosity, is this basically the same utility https://github.com/tracked-tools/ember-async-data provides?

@NullVoxPopuli
Copy link
Copy Markdown
Contributor Author

NullVoxPopuli commented Jul 25, 2025

It's similar but not quite -- step next is to remove ember-async-data from reactiveweb.

ember-async-data has a lot of unneeded checks, and doesn't properly handle already-resolved promises.

getPromiseState should, on average, give you faster applications due to not needing to always wait another render cycle to get you the resolved values.

ember-async-data's desire to hard-error when accessing certain properties at different times of the promise lifecycle has also bothered me for a very long time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants