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
{{ message }}
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Something like this (props @PatelUtkarsh) should be included in the plugin:
/** * Pre load snapshot data in customizer * When user saves a new snapshot and reloads customizer with that snapshot s/he should able to * see edited snapshot entity without searching it. * * @returns {void} */component.preLoadSnapshotData=functionpreLoadSnapshotData(){api.bind('ready',function(){varsettingKeys=_.keys(JSON.parse(api.previewer.query().customized));_.each(settingKeys,function(id){if(!/^post\[(.+?)]\[(\d+)]$/.test(id)){return;}api.Posts.addPostSection(id);});});};