Error:
Uncaught TypeError: Cannot read properties of undefined (reading 'path')
at matchPath (utils.ts:622:1)
useEffect(() => {
const fetching = async () => {
const { data } = await axios.get(`/api/notes/${match.params.id}`);
setTitle(data.title);
setContent(data.content);
setCategory(data.category);
setDate(data.updatedAt);
};
fetching();
}, [match.params.id, date]);