Components Beta4 - Breaking Change

Hi everyone,

Getting Components dialed in has been particularly challenging, and unfortunately this latest build introduces a breaking change for anything you may have constructed so far.

When you’re in the Component builder viewing an “export”, any adjustments to the local parameters will be reset to their “initial” values. If you didn’t change them from the initial values, you won’t have this issue.This does not apply to the actual instances of components used throughout your site. Those will still maintain their adjusted values.

If you encounter this, there’s a rather technical way to repair it I’ll describe here, but it might just be easier to change them back manually.

  • Open the Component Set
  • Go to the Tools tab of Dev Toolkit
  • Under “Data Store > Elements” click “Edit State”
  • Search for _p_export to find the raw data for each export in the set.
  • Next to _p_export (or a few keys down at the same level) you’ll see _p_data with the previous data you had saved.
  • Rename _p_data to _p_local for each component export
  • In the code editor header, click the “Apply Changes” button (play icon)
  • Save the document, and refresh

I apologize that we had to break things midstream, and this certainly isn’t something we’d do after an official release. We had to split some things up to account for the potential of needing parameters on a component instance - it’s a very advanced use case, but could be needed at times.

2 Likes

No worries, it’s a beta :smile:

1 Like

Thanks! :+1: