Realtime-Collaborative-Code-Editor
                                
                                
                                
                                    Realtime-Collaborative-Code-Editor copied to clipboard
                            
                            
                            
                        window-reload-on-theme-change
Description
When attempting to change the theme in the code sync application, the code in the editor is unexpectedly reset, causing a loss of work. This issue poses a significant inconvenience for users who wish to customize the visual appearance of the editor.
Steps to Reproduce
- Open the code sync application. steps here
 - Create a room and click the join button.
 - Write your code on the code editor.
 - Navigate to the theme settings.
 - Choose a different theme.
 - Observe that the code in the editor is reset.
 
Demo
https://github.com/Mohitur669/Realtime-Collaborative-Code-Editor/assets/79283402/a0a8b83e-57e5-4250-bfb6-b7849a667ab4
Expected Behavior
Changing the theme should not result in a reset of the code in the editor. The selected theme should be applied without affecting the existing code.
Actual Behavior
The code in the editor is being reset when attempting to change the theme.
Environment
- Code Sync Application Version: 0.1.0
 - Operating System: Ubuntu 22.04.4
 - nvm version: 0.39.7
 - node version: 20.11.1
 - npm version: 10.2.4
 
Note
This issue is reported with the intention of contributing to the improvement of the code sync application. I would greatly appreciate your quick attention to this matter.
Thank you for maintaining an open-source project and considering this bug report.
Best regards, Mohd Mohitur Rahaman Mohitur669