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

Request sometimes sent without form data #735

Open
flochtililoch opened this issue Nov 1, 2023 · 0 comments
Open

Request sometimes sent without form data #735

flochtililoch opened this issue Nov 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@flochtililoch
Copy link
Collaborator

Repro case in demo app on Android (possibly with iOS too) with example "Case studies > Contacts":

  • enter a couple characters in the search input to trigger a search
  • while search request is pending, delete a character
  • observe requests - one is made without the search field

Further troubleshooting shows that getFormData cannot find the parent form.

A couple theories:

  • the call to getFormData comes from onUpdateFragment, itself coming from onUpdate, it's possible the reference of the element is an orphan, i.e. no document / was part of a document that has since been replaced
  • the element comes from a fragment that was inserted inside a form element, and we don't have the full document reference yet (i.e. the element was selected from a partial Hyperview doc).
@flochtililoch flochtililoch added the bug Something isn't working label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant