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
Add an event when FormulateForm is intialized/mounted #384
Comments
A |
Doesn't seems to work anymore I am also not able to find it in the docs anywhere. |
|
Great! Will you also block the |
Unfortunately I don’t understand what you’re asking for @Rednas83. Can you give me an example of what/how this is useful? |
The use is I think it also makes more sense because the Expected behaviour
Actual behaviour
|
Just noticed an issue with the new |
@Rednas83 the created event really has nothing to do with the schema. it's based on the form. If you dont provide anything for the form to render, the form still get's created. Perhaps in your created handler you could check if items is falsey. |
...But if you provide an asynchronous schema it will also trigger the You can do this by checking if |
Sure, but that request is specific only if the form is using a schema. The created event is not specific to your particular implementation. The created event is accurately triggered when the FormulateForm is created. If you have other async things going on in user land, those are not really in the scope of the project. if you want to only trigger the @created event when your schema mounts, why not just put a |
the form is literally the This created event, as far as i can tell, is working as intended. It fires when the form is created (and for most cases that is the same fields mounting). |
Currently you can only guess when the form is initialized.
I think there are 2 possible solutions for this
Solution 1: Trigger the input event after the form is fully loaded
Solution 2: Add an additional event
Actual behaviour
The text was updated successfully, but these errors were encountered: