- From: Claudia Meadows via GitHub <sysbot+gh@w3.org>
- Date: Mon, 05 May 2025 21:14:24 +0000
- To: public-css-archive@w3.org
> Doesn't mithril have an "update now" sort of function, like React's `flushSync`? That would be my first place to look if I was to integrate view transitions with a framework I'm not familiar with (and the way to integrate view transitions with React before the built-in support was en-route). We do allow synchronous renders with `m.redraw.sync()`. However, the `popstate` handler updates the router's state asynchronously, so you can't just do `m.route.set("/path"); document.startViewTransition(m.redraw.sync)` and call it a day. Also, neither us nor React Router provide hooks to generically intercept route changes to manually schedule the sync update. This not only complicates the state update even for React users, it also 1. introduces non-determinism depending on when the browser flushes the transition update and 2. causes the whole thing to not even be usable at all with the back and forward buttons. -- GitHub Notification of comment by dead-claudia Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12125#issuecomment-2852354898 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 5 May 2025 21:14:25 UTC