SPA navigation API for custom code components
M
Maksym Penderuk
Problem / current behavior
One of our components renders an <iframe> and listens for postMessage events from the iframe. When a message is received and validated, we redirect the user to a Framer page whose pathname comes from the message.
Today the only reliable option is:
window.location.href = newLink;
This triggers a full page reload which loses SPA benefits because of the visible refresh and slower navigation.
Goal
Allow code components to trigger navigation through the Framer router (similar to useNavigate() in React Router), so navigation happens without a full reload and behaves like other internal Framer links.
Log In