FlowRouter SSR don't work properly
ahxar opened this issue · comments
Ahmad Safar commented
I already implementing FlowRouter SSR. but have one problem.
when defining FlowRouter.route
inside function (injectDeps)
. SSR won't working, but after defining FlowRouter.route
outside function (injectDeps)
it will work.
i use kickstart-mantrajs-webpack
but post in here because there more issues open, so i can have more help :D
Ahmad Safar commented
Hey i got solution for this:
import './client/main'
inserver.js
, so all client stuff loads in server too.- Only load
methodStubs
in client usingMeteor.isClient
- Load all assets (if using webpack loader) inside
Meteor.isClient
block
SSR in MantraJS + Webpack is working now :)