Skip to content

fix Bug : lose generation result if leave gen space#86

Open
Omar AbdElzaher sleam (omar92) wants to merge 1 commit intoLightricks:mainfrom
omar92:bugfix/lose-generation-result-if-leave-gen-space
Open

fix Bug : lose generation result if leave gen space#86
Omar AbdElzaher sleam (omar92) wants to merge 1 commit intoLightricks:mainfrom
omar92:bugfix/lose-generation-result-if-leave-gen-space

Conversation

@omar92
Copy link
Copy Markdown

@omar92 Omar AbdElzaher sleam (omar92) commented Apr 3, 2026

Replace conditional rendering with class-based visibility for the 'GenSpace' and 'VideoEditor' components, This fix the bug of losing the generation if swapped taps while something is generating

#85

Fixed. GenSpace no longer unmounts when you switch to Video Editor, so in-progress generation state remains alive and visible when you come back.

What changed:

Updated Project.tsx to keep both tab components mounted and toggle visibility with hidden instead of conditional mount/unmount.
Why this fixes it:

Before: tab switch destroyed GenSpace state (useGeneration state, progress UI, completion handlers).
Now: GenSpace stays mounted, so generation progress/result handling continues even while you’re on editor tab.

Replace conditional rendering with class-based visibility for the
'GenSpace' and 'VideoEditor' components, This fix the bug of losing the generation if swapped taps while something is generating
@omar92 Omar AbdElzaher sleam (omar92) changed the title refactor: improve tab visibility logic in Project.tsx fix Bug : lose generation result if leave gen space Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant