Skip to content

Commit

Permalink
get rid of meteor.subscribe error during SSR, because `std:accounts…
Browse files Browse the repository at this point in the history
…-ui` LoginForm needs `meteor.subscribe`
  • Loading branch information
comus committed Feb 6, 2017
1 parent e8714af commit dfd01fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/nova-core/lib/server.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import './server/oauth.js';
import './server/start.js';
import './server/apollo_server.js';
import './server/meteor_subscribe.js'

export * from './modules.js';

import { newMutation, editMutation, removeMutation } from 'meteor/nova:lib';
export { newMutation, editMutation, removeMutation };

export { newMutation, editMutation, removeMutation } from 'meteor/nova:lib';
export * from './server/render_context.js';
6 changes: 6 additions & 0 deletions packages/nova-core/lib/server/meteor_subscribe.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Meteor } from 'meteor/meteor';

Meteor.subscribe = () => ({
stop() {},
ready() { return true },
})

0 comments on commit dfd01fd

Please sign in to comment.