Use new eslint package- fix lint issues in ts and js
This commit is contained in:
@@ -22,7 +22,7 @@ import {Dispatcher} from "flux";
|
||||
// Hook to simplify listening to flux dispatches
|
||||
export const useDispatcher = (dispatcher: Dispatcher<ActionPayload>, handler: (payload: ActionPayload) => void) => {
|
||||
// Create a ref that stores handler
|
||||
const savedHandler = useRef((payload: ActionPayload) => {});
|
||||
const savedHandler = useRef((_: ActionPayload) => {});
|
||||
|
||||
// Update ref.current value if handler changes.
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user