Lucas Feliciano
ca521b36e6
Manually call sheet.seal() to avoid memory leaks on with-styled-components example ( #6107 )
...
I was noticing some bad memory leak on my company's application and I ended up finding this github issue ( https://github.com/styled-components/styled-components/issues/1624 ) .
This comment ( https://github.com/styled-components/styled-components/issues/1624#issuecomment-425382979 ) caught my attention, which lead to this other issue on the repository of styled components website ( https://github.com/styled-components/styled-components-website/issues/329 )
After applying the changes on my project I noticed a huge improvement on memory consumption.
So would be nice to update the example or start a discussion on how to solve this properly
2019-01-24 10:16:47 +01:00
Tim Neutkens
9c4eefcdbf
Add prettier for examples directory ( #5909 )
...
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again
2018-12-17 17:34:32 +01:00
Tim Neutkens
ed2c379fc7
Simplify styled-components example ( #5631 )
...
- use `enhanceApp` so that styled-components used in _app.js are server rendered
- call parent getInitialProps, fixes #5629
- return `styles`, making the render() method obsolete.
cc @mxstbr @probablyup
2018-11-08 12:43:16 +01:00
Henrik Wenz
18488f47b0
Fix linter ( #5350 )
...
* Fix linter
* Add test env
* Fix lint errors
2018-10-20 17:00:01 +02:00
Supakorn Thongtra
fef6026ad9
<title> should not be used in _document.js's ( #5379 )
...
* <title> should not be used in _document.js's
* fix style as it was
2018-10-05 23:53:52 +02:00
Shaleen Jain
093b091a5c
Update styled components example ( #2945 )
...
* Update styled components example
Updates the styled-components example to pass HOC to renderPage() and fix SSR.
* fix lint errors
2017-09-14 14:17:18 +02:00
Grokling
1b893518bb
Add SSR to examples/with-styled-components + bump styled_components v2 ( #1908 )
2017-05-07 14:25:33 +02:00
Sergio Daniel Xalambrí
bb3ceaadea
Fix styled-components server-render example ( #1382 )
2017-03-10 09:07:28 +01:00
Tim Neutkens
e1babdfe9d
Render styled-jsx in _document example ( #1287 )
2017-02-28 05:15:49 +05:30
nkzawa
64aa4454ac
examples: fix SSR of styled-components
2017-01-01 20:24:48 +09:00
nkzawa
b8291abeac
improve the styled-component example
2016-12-22 17:16:33 +09:00
Dan Zajdband
c5d69f0585
Add/move examples ( #470 )
...
* Added redux and styled components (wip) examples.
* Updated examples readmes and package.json
* Fixed styled-components example
2016-12-21 21:10:54 -08:00