I need to listen to layer visibility changes, but can´t figure out how to do it with Javascript 4.x SDK.
LayerList "trigger-action" never triggers on layer visibility changes.
I Tryed like:
LayerList.on
But just working on "load" event..
Also triyed to see all events to find the right one, with no success.

Any ideas?