Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with component rendering #13

Open
tomexx opened this issue Jan 25, 2021 · 3 comments
Open

Issue with component rendering #13

tomexx opened this issue Jan 25, 2021 · 3 comments

Comments

@tomexx
Copy link

tomexx commented Jan 25, 2021

Hi, first of all, thank you for the repo!

Secondly, I tried to use the repo with Razzle SSR. The server part works correctly but I have issue on frontend part. The components with useSSE seems to render correctly, but they rerender again while FE init so there is visible blinking (the API call from useSSE is fired again on FE, trying to reach the same data that are already rendered by server). Are you aware of this, is it a known issue?

Thanks a lot

@kmoskwiak
Copy link
Owner

Hi, I never worked with Razzle. Are you able to provide an example code?

@osvarychevskyi
Copy link

Hi,

I am using the custom server side rendering with webpack and I can confirm that I have the same issue.

The api request is triggered again on the client side despite the data is rendered and delivered from.

@JulianSoto
Copy link

JulianSoto commented Jul 24, 2021

Did you declare const { ServerDataContext, resolveData } = createServerContext() inside your express middleware/controller?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants