Use cache
This commit is contained in:
@@ -50,7 +50,7 @@ const Navigation = function ({ router }) {
|
||||
const id = route.id;
|
||||
const className = id === activeRouteId ? "font-bold" : "";
|
||||
return (
|
||||
<li className={className}>
|
||||
<li className={className} key={id}>
|
||||
<button onClick={() => onUpdateRoute(route.path)}>{id}</button>
|
||||
</li>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user