Skip to content

Implemented onActivate and onDeactivate callbacks

Latest
Compare
Choose a tag to compare
@dkozar dkozar released this 13 Aug 22:23
· 5 commits to master since this release

After the component rendered via Liberator, the parent component's refs don't point to child components anymore.

To get to child's DOM you should use the onActivate callback, providing you with the following information:

  • layer - the layer to which liberated components are rendered to (multiple Liberators could render into the same layer)
  • wrapper - wrapper element for component rendered by THIS Liberator
  • children - original children provided to THIS Liberator