We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b0889 commit 34e2450Copy full SHA for 34e2450
src/createSharedElementStackNavigator.tsx
@@ -92,19 +92,15 @@ export default function createSharedElementStackNavigator<
92
null
93
);
94
95
- // TODO
96
- /* componentDidMount() {
97
- if (debug) {
+ if (debug) {
+ React.useEffect(() => {
98
rendererDataProxy.addDebugRef();
99
- }
+ return function cleanup() {
+ rendererDataProxy.releaseDebugRef();
100
+ };
101
+ });
102
}
103
- componentWillUnmount() {
104
- rendererDataProxy.releaseDebugRef();
105
106
- }*/
107
-
108
return (
109
<SharedElementRendererContext.Consumer>
110
{rendererData => {
0 commit comments