CSS Emotion is caching CSS despite variables

79
January 01, 2020, at 9:50 PM

I'm using Emotion for CSS in a React project. It's working correctly but I have one component that uses the css property with JS arguments and it seems Emotion is caching the CSS despite the variables changes.

Here's a CodeSandBox to test the behavior : https://codesandbox.io/s/youthful-lumiere-bfg7o

When you click on the images, the zoom should start from the top left corner of the image. It works the first time, but after clicking multiple times on one image then another, Emotion is keeping values in cache (I logged the JS values before sending them to Emotion, you can check in the console)

Animation is slowed down to see the bug.

Thanks for the help

READ ALSO
smooth transition on content change

smooth transition on content change

I have a DIV of unknown height with content that can be changed from a javascript eventWhen the content changes, the DIV resizes to fit the new content

115
parallax scroll effect getting laggy

parallax scroll effect getting laggy

i wrote a script that basically gives the topper element a negative margin bottom, so it makes the element below it go up and it kind of makes a parallax like scroll, my problem is i wrote the function as a scroll and i think the function runs so much that it makes the page kind of laggy,...

70
Spider Error Processing - Python Web Scraping Error

Spider Error Processing - Python Web Scraping Error

I am new to Python and very new to web scraping, but I am trying to build a web scraper for this site: https://wwwfortune

123