Question about batch refreshing block content #12625
Labels
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Help Request
Help with setup, implementation, or "How do I?" questions.
Description
I am updating all blocks on a post programmatically. I am replacing certain patterns of text with link elements.
This is a sidebar plugin which has a button to trigger this manipulation.
I have successfully transformed the content via an "editPost" method. Along the lines of:
This partially works. When I save the post manually and reload it, my new content appears. However, until I do that, the current editor version is not updated. If I make edits, those trample over the transformed "content" value I had set.
I have tried dispatching the "refreshPost" action, but that does not seem to do it. It seems to me that some cached value is not being cleared and refreshed.
Gutenberg Version 4.6.1
The text was updated successfully, but these errors were encountered: