theme-scripts icon indicating copy to clipboard operation
theme-scripts copied to clipboard

.extend() before load()

Open nicolasalliaume opened this issue 6 years ago • 0 comments

Hi there,

I'm using Slate, which in turns uses theme-scripts, and I'm trying to extend a section.

Now the problem I'm having is that there're no instances of a given section (in this case "product") when I call extend( 'product' ). Diving into the theme-sections.js file I could see that the instances are added to the array of instances when load() is called. So I tried calling extend() after calling load(), and in that case it extended it, but onLoad() is not called on the extension (init() is being called though).

Any ideas on how this should be fixed?

nicolasalliaume avatar Feb 08 '19 15:02 nicolasalliaume