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

Reactive queries fail when using SSR #36

Open
Floriferous opened this issue Jan 2, 2019 · 1 comment
Open

Reactive queries fail when using SSR #36

Floriferous opened this issue Jan 2, 2019 · 1 comment

Comments

@Floriferous
Copy link
Contributor

If you use a reactive query with SSR, the server crashes with the following error:

E20190102-15:40:30.205(1) (webapp_server.js:991) Error running template: TypeError: query.subscribe is not a function
    at props (packages/cultofcoders:grapher-react/lib/withReactiveQuery.js:17:42)
    at ReactMeteorDataComponent.getMeteorData (packages/react-meteor-data/ReactMeteorData.jsx:181:16)
    at MeteorDataManager.calculateData (packages/react-meteor-data/ReactMeteorData.jsx:34:24)
    at ReactMeteorDataComponent.componentWillMount (packages/react-meteor-data/ReactMeteorData.jsx:130:45)

[Lines left out]

    at sink (imports/startup/server/ssr-server.js:30:3)
    at onPageLoad.chain.callback (packages/server-render/server-register.js:14:19)
    at promise.then (packages/server-render/server.js:28:36)
    at /Users/Florian/.meteor/packages/promise/.0.11.1.1kty3c4.78s++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40

I'm not sure what the best way of solving this is, since we can't subscribe to data on the server?

@liitfr
Copy link

liitfr commented Jun 22, 2021

Hello,
I believe @abecks started to work on this :
#22

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

2 participants