score:1

Accepted answer
  const context = useLeafletContext();

  // ... rest of code removed for brevity

  useEventHandlers({instance: parentMap, context}, handlers);

Related Query

More Query from same tag