Skip to content
Snippets Groups Projects
Commit d99c61fd authored by chris's avatar chris
Browse files

dont reset app on remount

parent 1a2c5c5e
No related branches found
No related tags found
No related merge requests found
Pipeline #61395 passed with stages
in 2 minutes and 4 seconds
......@@ -63,17 +63,13 @@ const Wax = forwardRef((props, innerViewRef) => {
const [application, setApplication] = useState();
const configHash = createConfigWithHash(config);
useEffect(() => {
return () => application?.resetApp();
}, []);
useEffect(() => {
const newApplication = createApplication(props);
WaxLayout = setupLayout(newApplication, layout);
setApplication(newApplication);
return () => {
newApplication.resetApp();
WaxLayout = null;
// newApplication.resetApp();
// WaxLayout = null;
};
}, [configHash]);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment