8c06dab10f
## Issues - Not safe to call the parent callback from the render function. It must be called from an effect or - `onHidden` is only called when blacklisted, but it can also be hidden from other circumstances. - While those other circumstances doesn't apply for FYP (the first client that relies on `onHidden`, it's incorrect from a code perspective, unless it is renamed to `onBlacklisted`. ## Change - Move the callback execution into an effect. - Ensure `onHidden` is for all situations that it is hidden. |
||
---|---|---|
.. | ||
index.js | ||
view.jsx |