Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Enhance Overlay State Management and Prevent Duplicate Entries (#53
) * fix: Ensure unique overlay ID and maintain overlay state on close/reopen - Added check to prevent adding an overlay with a duplicate ID if it already exists and is open. - Modified `overLayOrderList` to filter out existing overlay ID before adding it to ensure proper state management when closing and reopening overlays. - Improved error handling to throw an error if the same overlay ID is attempted to be added. Co-authored-by: jgjgill <79239852+jgjgill@users.noreply.github.com> Co-authored-by: Jeongjin Oh <33178048+ojj1123@users.noreply.github.com> * fix: Enhance overlay state management and prevent duplicate entries - Added `current` state to track the current overlay in `OverlayProvider` and `ContentOverlayController`. - Implemented logic to maintain overlay state correctly when an overlay is closed and reopened without unmounting. * Create tall-flowers-trade.md * Update packages/src/context/reducer.ts Co-authored-by: Jeongjin Oh <rojay.developer@gmail.com> --------- Co-authored-by: jgjgill <79239852+jgjgill@users.noreply.github.com> Co-authored-by: Jeongjin Oh <33178048+ojj1123@users.noreply.github.com> Co-authored-by: Jeongjin Oh <rojay.developer@gmail.com>
- Loading branch information