Skip to content

[Kino] Is it possible to update input elements programatically? #2513

Answered by jonatanklosko
clayscode asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @clayscode, do you have a specific use case?

There are several reasons why I would rather not cross that bridge:

  • this could introduce a weird cyclic dependency in change tracking. Specifically, if a later cell changes the input, this would in turn make some subsequent cells stale. If this happens async, then it's even more weird and messes with reproducability

  • depending on whether the input is inside form or standalone it is per-user or shared. So we would need a way to handle both cases, but that input struct itself doesn't even know which one it is

  • for some inputs the values are specific enough that they would be hard to reproduce for the user, without introducing more APIs. I…

Replies: 1 comment 2 replies

Comment options

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

@josevalim
Comment options

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