Comments (5)
Thanks for letting me know! Do you want to make a PR?
from crater.
It seems there are some issues with meteor-imports-webpack-plugin that are preventing webpack2 from working as well. jedwards1211/meteor-imports-webpack-plugin#13
I am still teaching myself webpack so these issues are difficult for me to solve at the moment. I am not sure when I will have time to dive in far enough to get a workable PR.
from crater.
As an alternative you can use Redux middleware to handle a lot of the Meteor reactivity. I adapted code from here https://github.com/djhi/my-nutrition/tree/master/app/client/middlewares for my own project.
If those middleware's are active you just fire a redux action like this:
function myAction(param1) {
return {
type: 'MY_ACTION',
meteor: {
subscribe: () => Meteor.subscribe('mysubscription', param1),
get: () => MyCollection.find(),
}
}
}
The caveat here is that data is usually stored twice on the client side. Once in minimongo via Meteor, and then again when the reducer stores it in state. Not a big deal to me. Just ignore that minimongo exists. ;-)
from crater.
It's funny how many ways there are to solve a problem. I have <MeteorSub>
components that subscribe on mount or prop changes and unsubscribe on unmount so that I can declare what subscriptions I need for a given container. Really convenient for reactive joins on the client. Also, I created some redux integration for Mongo.Cursor.observeChanges
that merges the document changes into my Immutable.js redux state. But it does get tricky to guarantee performance that way with thousands of documents.
from crater.
Okay, this is fixed now
from crater.
Related Issues (20)
- An in-range update of meteor-node-stubs is breaking the build 🚨 HOT 2
- An in-range update of fibers is breaking the build 🚨
- "Meteor code must always run within a Fiber" Production Server SSR only. HOT 12
- Meteor 1.5 HOT 7
- An in-range update of babel-core is breaking the build 🚨 HOT 1
- Can't resolve 'fs' from debug package HOT 3
- An in-range update of react is breaking the build 🚨 HOT 2
- An in-range update of eslint-watch is breaking the build 🚨 HOT 2
- An in-range update of redux is breaking the build 🚨 HOT 3
- An in-range update of webpack-dev-middleware is breaking the build 🚨 HOT 2
- An in-range update of defaultenv is breaking the build 🚨 HOT 1
- An in-range update of progress-bar-webpack-plugin is breaking the build 🚨 HOT 1
- An in-range update of json-loader is breaking the build 🚨 HOT 3
- An in-range update of eslint-plugin-babel is breaking the build 🚨 HOT 1
- An in-range update of babel-runtime is breaking the build 🚨 HOT 2
- An in-range update of mocha is breaking the build 🚨 HOT 4
- An in-range update of babel-register is breaking the build 🚨 HOT 1
- An in-range update of babel-cli is breaking the build 🚨 HOT 1
- An in-range update of bcrypt is breaking the build 🚨 HOT 1
- An in-range update of rimraf is breaking the build 🚨 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crater.