You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could it not be useful for plugins that may want to add a block that is used just once?
Consider a block where the data may be saved as post meta where you would only want one instance per post. For example, a subtitle block - this would differ from just a normal heading in that it would be saved as post meta so that it could be pulled an displayed separately on post archives etc.
Activity
youknowriad commentedon Nov 28, 2017
Maybe we should not document this property. It's only useful for the "more" block where you can only insert this block once in a post.
benhuson commentedon Dec 12, 2017
Could it not be useful for plugins that may want to add a block that is used just once?
Consider a block where the data may be saved as post meta where you would only want one instance per post. For example, a subtitle block - this would differ from just a normal heading in that it would be saved as post meta so that it could be pulled an displayed separately on post archives etc.
youknowriad commentedon Dec 12, 2017
@benhuson That's a good point 👍
Anyone wants to PR this?
jaswrks commentedon Jan 18, 2018
I PR'd it, docs enhanced here: #4473
Improve `useOnce` documentation.
Refresh patch
adamsilverstein commentedon Feb 15, 2018
Fixed in #4473