-
Notifications
You must be signed in to change notification settings - Fork 1
Tina Visual Editing #249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Tina Visual Editing #249
Conversation
✅ Deploy Preview for pss-scavenger-hunt ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for padp-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for gbof-c19nyc-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for juel-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi @ajolipa, I saw this just now. Looks like it could be some kind of race condition inside that Peripleo component's effect hooks. I'll take a look! |
|
Hi @ajolipa, I found a likely culprit for the first error. I don't have a full setup of I'll publish a new Peripleo release, with the fixes that helped in my case. So, one thing you should try is to update to new Peripleo (will be v0.8.8). However: I think you are not only running into this problem inside Peripleo. From the logs above, it looks like it also happens here: If that's the actual error location, you'd have to apply a similar fix there as I've applied in Peripleo here: I.e. in Map.js, line 74 should be: This should fix it (fingers crossed) for your own WarpedImageLayer. The other layer types come directly from Peripleo, so there the updated 0.8.8 version will hopefully help. For explanation (as far as I even have one...): it definitely looks like a race condition. Here's my guess of what's going on:
|
|
Done - v0.8.8 is now published. Two more questions, while we're at it:
|
|
Hi @ajolipa, for testing, I now also published beta prerelease packages:
MapLibre 5 did introduce some breaking changes, so if you attempt to upgrade, a thorough regression test is probably sensible. |
In this PR
This is a work in progress to implement visual editing for user-generated content in TinaCMS. This branch currently implements it for both paths and posts, and each of these has one issue I haven't been able to figure out. I'm including both here since I'm not sure which will turn out to be the most tractable.
and a bunch of similar things. I believe the issue has to do with how the
PlaceInsertcomponent is being unmounted when the data passed to the body of the post changes so that the map is in a new position in the list of children, but I haven't been able to figure out how to make it handle this state change more elegantly.Recording.2025-09-18.154832.mp4
This can be worked around by collapsing the side panel and navigating to the desired leg of the path and then reopening the panel, but that is not an ideal user experience.