-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinal_errors.txt
More file actions
29 lines (22 loc) · 9.63 KB
/
Copy pathfinal_errors.txt
File metadata and controls
29 lines (22 loc) · 9.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
C:\Users\Acchu Masterpiece\Downloads\ECHORA_2-Royal-Rebuilt.tar\ECHORA_2-rebuilt\src\components\Navbar.jsx
21:20 error 'signOut' is assigned a value but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
C:\Users\Acchu Masterpiece\Downloads\ECHORA_2-Royal-Rebuilt.tar\ECHORA_2-rebuilt\src\context\AuthContext.jsx
93:9 error Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
91 | const parsedUser = JSON.parse(session);
92 | const parsedProfile = JSON.parse(savedProfile);
> 93 | setUser(parsedUser);
| ^^^^^^^ Avoid calling setState() directly within an effect
94 | setProfile(parsedProfile);
95 | setRole(parsedProfile.role || 'volunteer');
96 | } react-hooks/set-state-in-effect
97:14 error 'e' is defined but never used no-unused-vars
97:17 error Empty block statement no-empty
191:14 error Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components
C:\Users\Acchu Masterpiece\Downloads\ECHORA_2-Royal-Rebuilt.tar\ECHORA_2-rebuilt\src\pages\Dashboard.jsx
1:27 error 'useEffect' is defined but never used. Allowed unused vars must match /^[A-Z_]/u no-unused-vars
Γ£û 6 problems (6 errors, 0 warnings)