Skip to content

Try to implement two step validation: local and remote... #4

@paluh

Description

@paluh

@MonoidMusician asked about "two step validation":

  • @paluh: What do you mean by "sync and async errors"?
  • @MonoidMusician: if one part of the validation has to check something with the server but the other is a quick “is this syntax right”, it seems like those could be validated independently or something ...

Let's try to implement this scenario using Input.Interpret - I'm not sure if it is possible though:

  • @paluh: One "dirty" solution to your "two step" validation could be:
    • build form using Polyform.Input.Interpret primitives + your own *F validation types
    • construct first interpretation which runs in browser and skips remote validation "somehow"
    • construct second interpretation which runs also remote calls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions