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.

Activating the Loom browser extension causes my emotion-based site to break

See original GitHub issue

Current behavior:

I have an SSR setup with emotion using babel-plugin-emotion with default configuration. The initial HTML response from my server renders the site correctly. Among other interesting parts, it looks like this:

image

However, once the client bundle takes over, it looks like this:

image

Here’s the fun part: I have the Loom extension activated. If I disable it, the footer renders correctly both before and after the client bundle takes over.

I read the CSS injected by Loom, but there are no clashing classes.

What I could observe was that after my client bundle loads, some of emotion’s style tags are removed from the head. My suspicion is that Loom also has an instance of emotion and it’s running [extractCritical](https://emotion.sh/docs/ssr#extractcritical) on my code? This sounds unlikely because extractCritical is supposed to run on top of the rendered tree from React, which would only affect their app.

To reproduce:

I’m sorry, but I can’t produce a minimal reproducible example because I don’t know where the problem originates. So I have to direct you to the website in question:

  1. Use Chrome/Chromium, because Loom only works on Chrome/Chromium.
  2. Install the Loom extension.
  3. Visit this website.
  4. Play around activating and deactivating Loom using chrome://extensions/ to see how that affects the website.

Expected behavior:

The header and the footer on my website do not break after the client bundle loads.

Environment information:

  • react version: 16.10.2
  • @emotion/core version: 10.0.22
  • babel-plugin-emotion version: 10.0.22

Note:

I’m aware that this may just be a problem with the Loom extension. I wanted to raise this here, too, in case it’s a bug in emotion.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
fnunecommented, Jan 30, 2020

I’ve asked them to leave a post-mortem here, we’ll see ☺️

1reaction
alexboninecommented, Apr 12, 2021

For future devs that land on this page, I was able to use @emotion/css/create-instance to create and export with a custom instance. I then replaced all imports of @emotion/react. I was not able to use createContext as it executes just by importing it into the build without even calling ReactDOM.render. The solution and more info here on the createContext issue: https://github.com/emotion-js/emotion/issues/2210#issuecomment-790783310.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Quality Fix the Loom Not Working Problems
Part 1. Loom Chrome Extension Problems and Fixes. Problems: Loom Not Recording. Normally one of the fundamental issues you're probably going to ...
Read more >
How to Fix Loom Desktop App/Loom Chrome Extension Not ...
Step 1: Download the Loom desktop app from its official website and install it on your computer. Step 2: Enter its main interface...
Read more >
How to Record Your Screen on Windows | Loom
To learn more, here's our step-by-step guide on how to record your Windows screen using Loom's desktop app or Chrome extension.
Read more >
US8965770B2 - Detecting emotion in voice signals in a call ...
The present invention relates to voice recognition and more particularly to detecting emotion using statistics calculated for voice signal parameters. 2.
Read more >
Untitled
Iiche exam and syllabus, Komissaari eu, Franciscan my chart tacoma, ... Flight sim x activation crack, Auto tune 7 rtas crack, Architrave health...
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