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.

Support for server-side rendering

See original GitHub issue

I am currently using Storeon with Gatsby. It working just fine on development but when Gatsby is on build stage where it will generate static HTML file, it failed because Storeon is undefined.

Actions log

GitHub Actions log

I think that it happens because during SSR, the StoreContext is undefined

https://github.com/storeon/storeon/blob/d9f4d004664208957bd28897b1cf91fcd17d941c/react/index.js#L6

and when it’s trying to get() data it called from undefined and causing it to crash

https://github.com/storeon/storeon/blob/d9f4d004664208957bd28897b1cf91fcd17d941c/react/index.js#L29-L37

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rayriffycommented, May 29, 2020

Thanks, man. I will help to contribute more on documentation in stores and some plugin as well.

0reactions
aicommented, May 29, 2020

Thanks. Released in 3.0.

BTW, good website 👍. My projects are NSFW-safe zone, since I post NSFW content to my Twitter too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is server-side rendering and how does it improve site ...
Server-side rendering ensures that website content appears quickly, without first having to download and run application code.
Read more >
What is Server-Side Rendering? Definition and FAQs
Server-side rendering (SSR) is an application's ability to convert HTML files on the server into a fully rendered HTML page for the client....
Read more >
Improve app performance with React server-side rendering
Server-side rendering is when content on your webpage is rendered on the server and not on your browser using JavaScript. For example, with...
Read more >
How to Enable Server-Side Rendering for a React App
Server -side rendering (SSR) is a popular technique for rendering a client-side single page application (SPA) on the server and then sending ...
Read more >
What is server-side rendering? - Educative.io
Server-side rendering (SSR), is the ability of an application to contribute by displaying the web-page on the server instead of rendering it in...
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