Skip to content

How to pass signals to native dom elements props? #435

Answered by rschristian
chneau asked this question in Q&A
Discussion options

You must be logged in to vote

The component is refreshing because you're using loading.value. Use just loading, as we outline in our docs.

Here's an example

I tried disabled={loading as unknown as boolean} with no success.

Ignoring the irrelevant TS type assertion, that should work just fine, per the example above.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@chneau
Comment options

@rschristian
Comment options

Answer selected by rschristian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants