question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After deploy, COMPONENT_CSS_LOOKUP keeps old component ids until a hard reload causing much havoc

See original GitHub issue

So I’m still trying to make sense of how this is happening, but I thought it was worth posting this sooner rather than later cause it’s causing me some serious headaches.

After each deploy to my production environment (using divshot), everything seems to come down the pipe alright (updated hashes for all the assets, the app still works and most of my styles work). However, anything that was styled by a component style has no styles at all. It will stay this way through refreshes as well. The only thing that will fix it is a hard reload. So obviously something is being cached somewhere, I just don’t understand what yet.

The reason there are no styles on components is that values injected in the vendor js for the component ids (COMPONENT_CSS_LOOKUP) have different ids than the ones that are actually in the stylesheets (ie: the lookup has page-header-376c34f9 but my css has page-header-8fa991a4)

I’m still trying to wrap my head around how this addon works but my hunch right now is that this problem may be related to PR #76

So I have two questions:

  1. is there anything else I can provide?
  2. Why the guid? It feels superfluous as the component name is unique enough.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
ebryncommented, Mar 22, 2016

Fixed as of 0.2.0-beta.1

0reactions
ryanschcommented, Nov 13, 2015

That’s an excellent question. I’m still new to ember-land and we have plans to manually namespace our component styles.

I just happened to find a workaround for this package. You might want to try pinging a maintainer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

New functionality not reflecting immediately after changing ...
New functionality not reflecting immediately after changing logic in lightning component. · 1. Go to Setup. · 2. Under "Administration Setup", go ...
Read more >
Website needs force refresh after deploy - asp.net
After deploying a new version of a website the browser loads everything from its cache from the old webpage until a force refresh...
Read more >
Cache Busting a React App - DEV Community ‍ ‍
Invalidate cache and hard reload the app when there's a version mismatch. Note: The examples and explanations in this post are React based....
Read more >
location.reload() - Web APIs | MDN
The location.reload() method reloads the current URL, like the Refresh button. The reload may be blocked and a SECURITY_ERROR DOMException ...
Read more >
How to force refresh without cache in Google Chrome?
Caching [of any resource, before and after the "Load event fired" line] is ... Right-click the Refresh button, and select Empty cache and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found