laravel/precognition

async validate()

makroxyz opened this issue · 12 comments

Is there a way to do this?
In other words... wait for validation response

function async nextStep() {
    await form.touch(["name", "email", "password", "password_validation"]).validate();

    return form.hasError
}

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

I need the same thing. Did anoyne find a solution? @makroxyz

I need the same thing. Did anoyne find a solution? @makroxyz

No, I also asked on Laracast forum...

I hope @driesvints could have a look at this and also #50

I am using setTimeout() to wait for response right now but that is not a good approach

Same approach here, just a temporary workaround.. I'm using ’’’await promiseTimeout’’’ from vueuse/core library

We will be adding this feature. Follow along in #59