theme-scripts
theme-scripts copied to clipboard
Theme Scripts is a collection of utility libraries which help theme developers with problems unique to Shopify Themes.
An issue I discovered while working working with the app instant search plus, where it generated an an anchor tag with a `#!` href value. #98 ![Capture](https://user-images.githubusercontent.com/6742768/58167295-ef623580-7c8b-11e9-9b85-0297f7ec7121.PNG)
The code referenced here generates an error and is not a good implementation. For example, we have some SPA code that uses hash links to trigger pages/overlays. We have for...
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...
### Problem In its current state, theme-sections is setup to load JS from all potential sections that show up on the home page, regardless if the merchants actually includes them...
**Background**: There was a recent PR that looked to add back a method to `theme-cart` that checked for cookies https://github.com/Shopify/theme-scripts/pull/63. It was decided not to include the method because it...
### Problem Hot Module Replacement (HMR) exchanges, adds, or removes modules while an application is running, without a full reload. This can significantly speed up development in a few ways:...
One of the biggest problems we have with updating an existing implementation of a theme is that the theme's source code often is modified. Once these edits have been made,...
Hot Module Replacement requires JS to formatted in a way that it can clean up after itself (reset any side-effects) without a full page refresh. `section.js` is already formatted perfectly...
Working with `section` from theme-scripts is a bit confusing at first, but I think this has to do with the fact that sections are instantiated, but are a wrapper of...
Is there any plans to include the option to use [Bundled Section Rendering](https://shopify.dev/api/ajax/reference/cart#bundled-section-rendering)?