Skip to content

Commit 2ebdede

Browse files
committed
refactored code, added cache -- need to add for rename, delete, and create
1 parent 1883f49 commit 2ebdede

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

PROVIDER_REFACTOR_SUMMARY.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,25 +101,25 @@ QueryClientProvider
101101

102102
## Benefits
103103

104-
### **Single Responsibility**
104+
### **Single Responsibility**
105105
Each provider has a clear, focused responsibility
106106

107-
### **Reduced Complexity**
107+
### **Reduced Complexity**
108108
- Smaller, manageable components
109109
- Clear separation of concerns
110110
- Easier to test and debug
111111

112-
### **Better State Management**
112+
### **Better State Management**
113113
- Logical grouping of related state
114114
- Reduced interdependencies
115115
- Cleaner state flow
116116

117-
### **Improved Maintainability**
117+
### **Improved Maintainability**
118118
- Easier to modify individual features
119119
- Better code organization
120120
- Clearer dependencies
121121

122-
### **Enhanced Reusability**
122+
### **Enhanced Reusability**
123123
- Providers can be used independently
124124
- Easier to compose functionality
125125
- Better for testing

src/contexts/FileContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React, { createContext, useContext, ReactNode } from 'react'
44
import { FileInfo, FileInfoTree } from 'electron/main/filesystem/types'
55
import { SuggestionsState } from '@/components/Editor/BacklinkSuggestionsDisplay'
66
import { HighlightData } from '@/components/Editor/HighlightExtension'
7-
import { useBlockNote, BlockNoteEditor } from '@/lib/blocknote'
7+
import { BlockNoteEditor } from '@/lib/blocknote'
88
import { useFileSystem } from './FileSystemProvider'
99
import { useEditor } from './EditorProvider'
1010
import { useNavigation } from './NavigationProvider'

0 commit comments

Comments
 (0)