Skip to content

Conversation

jvaclavik
Copy link
Collaborator

Description

Example links

Screenshots

Checklist

  • dark mode / light mode
  • mobile / desktop
  • server-side-rendering (SSR)
  • all texts are localized (in vocabulary.ts)

Copy link

vercel bot commented Nov 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Nov 30, 2024 8:35am

@jvaclavik jvaclavik force-pushed the directions-auto-recalculate-on-marker-drag branch from 367acaf to 0122e6c Compare November 30, 2024 08:32
@jvaclavik jvaclavik merged commit 3027ef2 into master Nov 30, 2024
3 checks passed
@jvaclavik jvaclavik deleted the directions-auto-recalculate-on-marker-drag branch November 30, 2024 08:36
Comment on lines -24 to 35
const [result, setResult] = useState<RoutingResult>(null);
const [revealed, revealForm, hide] = useBoolState(false); // mobile only
const hideForm = isMobileMode && result && !revealed;

const { setResult } = useDirectionsContext();

const setResultAndHide = useCallback(
(result: RoutingResult) => {
setResult(result);
hide();
},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like, you have imported result from lodash instead of DirectionContext. Could you please fix it?

@zbycz zbycz mentioned this pull request Jul 16, 2025
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants