Skip to content

Conversation

@yotam-wix
Copy link
Collaborator

Description

Hint - fix targetFrame prop not updating after mount
When targetFrame is passed as a prop, useHintLayout stored it only as the useState initial value, so any changes after mount were ignored. Added a useEffect to sync internal state when targetFrame changes.

Changelog

Hint - targetFrame prop now correctly repositions when updated after mount

Additional info

None

…etFrame, now allows for proper re-adjusting of hint location due to safeArea calculation.
@yotam-wix yotam-wix requested a review from lidord-wix February 12, 2026 09:52
@yotam-wix yotam-wix assigned lidord-wix and unassigned lidord-wix Feb 12, 2026
@github-actions
Copy link
Contributor

✅ PR Description Validation Passed

All required sections are properly filled out:

  • Description
  • Changelog
  • Additional info

Your PR is good for review! 🚀


This validation ensures all sections from the PR template are properly filled.

@yotam-wix yotam-wix removed the request for review from lidord-wix February 12, 2026 09:52
setTargetLayout(targetFrame);
setTargetLayoutInWindow(targetFrame);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not sure regarding this line, cursor was insisting it's necessary due to lint issues that may come up without it but I didn't see an issue when removing this line, so leaving it up to your opinion..

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