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

When the page loads I see function reactDom(__x3) { return __ref2.apply(this, arguments) } ? #23

Closed
golubvladimir opened this issue Nov 11, 2019 · 3 comments · Fixed by #66
Labels
question Further information is requested

Comments

@golubvladimir
Copy link

When the page loads I see function reactDom(__x3) { return __ref2.apply(this, arguments) } ?
I have the latest version.

@golubvladimir
Copy link
Author

After the page is displayed.

@golubvladimir
Copy link
Author

golubvladimir commented Nov 11, 2019

server.js

            jsx = extractor.collectChunks(<Provider store={ store }>
                <StaticRouter context={ context } location={ req.url }>
                    <JssProvider registry={sheets}>
                        <AppMain />
                    </JssProvider>
                </StaticRouter>
            </Provider>);

            ....
            const reactDom = async jsx => {
              const element = createElement(jsx);
              await ssrPrepass(element);

              return renderToString(element);
           };

@kitten
Copy link
Contributor

kitten commented Nov 11, 2019

Sounds like you’re printing the function and sending that to the client instead of an actual value.

Also please keep in mind that issues are more effective when you add more detail, so basically out-of-context code snippets, questions, missing reproductions, and similar issues can not be resolved easily, so you’re less likely to get the help you need.

For any questions like this it’s often therefore more advisable to check StackOverflow :)

@kitten kitten closed this as completed Nov 11, 2019
@kitten kitten added the question Further information is requested label Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants