3cad0fddc9cd8ad0f8d44bc8a2fad77995d8ceb7
The profile page useEffect cleanup was restoring the user's theme from stale closure values captured before Copy Theme was clicked. Use a ref to always read the latest ownTheme/ownCustomTheme/configuredThemes at cleanup time so the newly copied theme is correctly restored.
Description
Languages
TypeScript
95.7%
Java
1.5%
JavaScript
0.9%
Swift
0.9%
CSS
0.5%
Other
0.4%