fix: themeStore localStorage 키 ThemeContext와 통일
- localStorage 키를 'sam-theme'에서 'theme'으로 변경 - ThemeContext와 동일한 키 사용으로 마이그레이션 호환성 확보 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,7 @@ export const useThemeStore = create<ThemeState>()(
|
||||
},
|
||||
}),
|
||||
{
|
||||
name: 'sam-theme',
|
||||
name: 'theme', // ThemeContext와 동일한 키 사용 (마이그레이션 호환성)
|
||||
// Zustand persist 재수화 시 HTML 클래스 복원
|
||||
onRehydrateStorage: () => (state) => {
|
||||
if (state?.theme) {
|
||||
|
||||
Reference in New Issue
Block a user