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.

[V2] Double extend not working in v2.0.0-17

See original GitHub issue

Hi, extending an already extended styled-component is not working in v2.0.0-17.

const a = styled.div`...`
const b = a.extend`...` ---> works
const c = b.extend`...` ---> not working

I hope this explains the issue enough, otherwise I can create an example gist

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mxstbrcommented, May 29, 2017

Lots of indirection in that example 😅 Removing all the media queries, the first <Title /> styles are no longer applied. (notice the wrong font-family)

screen shot 2017-05-29 at 18 22 06

Live demo: https://codesandbox.io/s/l7mGk5jg

0reactions
ehtbcommented, May 29, 2017

Hi @philpl, thanks for the investigation: here is the example where it goes wrong: https://codesandbox.io/s/E93KZjYR0

As you can see it never renders the other two background colors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

exited with code=0 in 0.074 seconds - Output window has ...
It seems like the 'Code Runner' extension caused it. You can try to disable it to use 'Python' extension instead.
Read more >
Undenatured type II collagen (UC-II®) for joint support - NCBI
Undenatured type II collagen (UC-II®) for joint support: a randomized, double-blind, placebo-controlled study in healthy volunteers.
Read more >
STS8DNF3LL
Dual N-channel 30 V, 0.017 Ω typ., 8 A, STripFET™ II. Power MOSFET in a SO-8 package. Datasheet - production data. Figure 1....
Read more >
CLinical EValuation of WEB 0.017 Device in Intracranial ...
class I: complete obliteration; class II: residual neck; class III: residual aneurysm. Incidence of major stroke or neurological deaths [ Time Frame: ...
Read more >
1/8" (0.125) Inch Outer Diameter Stock Extension Springs
TSS Part# Outer Diameter by Fractions Outer Diameter (in.) D... PE011‑125‑15.864‑MW‑0.340‑MH‑Z‑IN 1/8 = 0.125 PE012‑125‑14.709‑MW‑0.340‑MH‑N‑IN 1/8 = 0.125 PE008‑125‑26.063‑MW‑0.380‑MH‑N‑IN 1/8 = 0.125
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