-
Notifications
You must be signed in to change notification settings - Fork 103
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
onError do nothing #17
Comments
@zbyso23 PR wellcome. |
okay, how to? I don't have experience with collaboration on GitHub project, trying create new branch - handle-errors but commit is impossible - don't have |
You have to fork this project, then push the new branch you created into your newly created repo. After that, you should be able to create a new PR from the Github interface. |
If you are using ace mode then for now you can have onChangeText callback and have a debounced function, if needed, to get the errors from ace session.
And a better way is to subscribe to 'changeAnnotation' event for ace. |
thanks - I try to implement subscribe changeAnnotation, but I noticed strange behaviour of Ace editor - when is fired in callback, return empty object - but, I say "okay, I get manually", but when i call directly code like this:
in annotations return OLD error! then I fix for now by code like this:
but is very dirty - time can be not enough on old computers :/
is every time called twice... |
@zbyso23 You need to create issue in upstream dependency |
I use now this hack
works good |
for even handling ACE Editor errors prepared this ugly version, please don't beat me 😄
|
PR welcome |
in |
this onError method fires on my component only if I trigger "filter, sort or transform contents" manually, I expected it to fire once an error occurs in JSON file. If I need to rely on JSON validity state, for, let's say, some button disabled state, how do I do that? |
I solve this problem by code above (10 Jun 2020), but it's not part of current code - i use standalone file |
you can use the onValidationError of the json editor const onValidationError = (value)=>{ |
I try to use onError, but do nothing, and when I look to implementation - is logically then do nothing because is not implemented :)
is planned to implement this useful property? thanks
The text was updated successfully, but these errors were encountered: