-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix shopify theme dev
issue to avoid previewing the live theme instead of the development one
#3471
Conversation
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
Coverage report
Show new covered files 🐣
Test suite run success1579 tests passing in 738 suites. Report generated by 🧪jest coverage report action from 57b51c3 |
…ead of the development one
4ea142b
to
57b51c3
Compare
Additional instructions are needed. I followed the instructions and can only confirm that the localhost link works in an incognito window. Does not work on standard window. I also attempted to clear local storage, cache, and cookies in standard window but still the same result. CLI localhost is serving published theme not local files on "shopify theme dev" cli command. |
Posting my comment here as well since #3466 has been closed and I fear that no one will look at it. I'm working on a theme app extension and am facing a lot of issues where any change that I'm making in the code is not reflecting on the development store preview page that I'm adding the app block to (product pages). The changes are showing up only if I reload the product page several minutes after I made the code change. This is making the development effort extremely infuriating (sorry). I'm wondering if my problem is also related to this issue. Any fix or suggestion on this front will be greatly appreciated. Thanks. What I've tried so far (unsuccessfully):
More info:
|
WHY are these changes introduced?
Fixes #3466
WHAT is this pull request doing?
It seems like the caching policy at SFR has changed, so we're implementing this temporary solution to clean it and mitigate the issue.
How to test your changes?
shopify-dev theme delete -t <development_theme_id>
shopify theme dev
Before
![](https://private-user-images.githubusercontent.com/1079279/307296177-a6345831-8fba-4e20-930e-a56e197d0d02.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwODg0MjYsIm5iZiI6MTc0MDA4ODEyNiwicGF0aCI6Ii8xMDc5Mjc5LzMwNzI5NjE3Ny1hNjM0NTgzMS04ZmJhLTRlMjAtOTMwZS1hNTZlMTk3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hNmNhYjlkNzA2YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.JZEUjzWZ7_wQ3A-OtyNhbok5IstglPFWtaPu6VkASHA)
Post-release steps
None.
Measuring impact
How do we know this change was effective? Please choose one:
Checklist
dev
ordeploy
have been reflected in the internal flowchart.