File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,12 @@ export const messageIds = {
1010 // Because if we have a setter then we have a callback.
1111 // But, I think that would also warn about valid uses that synchronize internal state to external state.
1212 // avoidEventHandler: "avoidEventHandler",
13- // TODO: Possible to detect when `useSyncExternalStore` should be preferred?
14-
13+ // TODO: Possible to detect when `useSyncExternalStore` should be preferred?
1514} ;
1615
1716// TODO: Could include more info in messages, like the relevant node
1817export const messages = {
19- [ messageIds . avoidEmptyEffect ] :
20- 'This effect is empty and could be removed.' ,
18+ [ messageIds . avoidEmptyEffect ] : "This effect is empty and could be removed." ,
2119 [ messageIds . avoidDerivedState ] :
2220 'Avoid storing derived state. Compute "{{state}}" directly during render, optionally with `useMemo` if it\'s expensive.' ,
2321 [ messageIds . avoidInitializingState ] :
You can’t perform that action at this time.
0 commit comments