Skip to content
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

Await helper: Make it possible to set a value to be returned before the given promise is settled #201

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Schnellesadlerauge
Copy link

@Schnellesadlerauge Schnellesadlerauge commented Oct 12, 2023

Makes it possible to set a value to be returned until the given promise has settled

{{await model.title 'loading...'}}

I need it for a case where I want to set a property only to false when the promise resolves with false

readOnly={{await (get-something-with-a-api-call "foo" "bar") true}}

@Schnellesadlerauge Schnellesadlerauge changed the title Make it possible to set a value to be returned before the given promise is settled Await helper: Make it possible to set a value to be returned before the given promise is settled Oct 12, 2023
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