mirror of
https://github.com/urosran/cally.git
synced 2025-07-16 01:56:16 +00:00
Event calendar rerender optimization attempt
This commit is contained in:
@ -136,7 +136,7 @@ export const ToDosContextProvider: FC<{ children: ReactNode }> = ({
|
||||
};
|
||||
|
||||
return (
|
||||
<ToDosContext.Provider value={{ toDos, updateToDo, addToDo, maxPoints }}>
|
||||
<ToDosContext.Provider value={{ toDos: toDos ?? [], updateToDo, addToDo, maxPoints }}>
|
||||
{children}
|
||||
</ToDosContext.Provider>
|
||||
);
|
||||
|
Reference in New Issue
Block a user