Hello.
I have a small problem that I did not find out the cause. It follows the images with the error.
The error does not stop me from continuing to work, but it is a bit uncomfortable.
the console error appears when you add the 197
line in the code with the afterRender
hook?
Yes
Can you share the code for the afterRender()
method that you call inside the hook?
I commented all the codes inside the afterRender () method and the error persists
In the line 203
you are calling a cell renderer in the afterRender
hook so it never stops.
I will ask my colleague to check what is the best way to use addHook
in Angular projects and I’ll be back as soon as possible.
My project does not use Angular, it’s more js pure and a light touch of jquery
Oh OK. So for the vanilla here’s a demo https://jsfiddle.net/handsoncode/o2jrt5g0/
It worked, thank you very much for the help.
The error disappeared but in compensation I had to take it off by locking the page
Ok I see.
It is possible to execute once only the some methods after rendering, since in this way it will execute the code several times locking the page?
There is a method called addHookOnce
(updated demo https://jsfiddle.net/handsoncode/78foqynm/) but it only called our method once. It needs to trigger the afterChange
internal hook. Without it, we won’t be able to render the changes.
Funcionou, muito obrigado pela ajuda.
Great.
I guess that we can close the topic.