payner35 / reduxtoast Goto Github PK
View Code? Open in Web Editor NEWsome complex toast - with Apollo, Mantra, Redux & Meteor
some complex toast - with Apollo, Mantra, Redux & Meteor
I see you are still pointing to Tracker and ReactiveDict for local state. Is this necessary?
First thanks for this repro. I had problem to get it to run. Here is what i have done and now it works.
here is my package.json
{
"name": "maps",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"apollo-client": "^0.5.0",
"apollo-server": "^0.2.5",
"body-parser": "^1.15.2",
"express": "^4.14.0",
"graphql": "^0.7.0",
"graphql-tag": "^0.1.11",
"graphql-tools": "^0.8.0",
"graphql-server-express": "^0.4.3",
"lodash": "^4.15.0",
"mantra-core": "^1.7.0",
"material-ui": "^0.15.4",
"meteor-node-stubs": "~0.2.0",
"react": "^15.3.0",
"react-apollo": "^0.6.0",
"react-dom": "^15.3.0",
"react-if": "^2.1.0",
"react-komposer-plus": "^2.2.3",
"react-mounter": "^1.2.0",
"react-redux": "^4.4.5",
"react-tap-event-plugin": "^1.0.0",
"redux": "^3.5.2",
"redux-logger": "^2.6.1",
"redux-thunk": "^2.1.0"
},
"devDependencies": {
"babel-preset-meteor": "^6.12.0"
}
}
Changing the routes.js to:
import React from 'react';
import {FlowRouter} from 'meteor/kadira:flow-router';
import {mount} from 'react-mounter';
//mainLayout is the main view...
import MainLayout from './containers/mainLayout';
import Home from './containers/view_home';
export default function (injectDeps) {
const MainLayoutCtx = injectDeps(MainLayout);
// Move these as a module and call this from a main file
FlowRouter.route('/', {
name: 'home',
action({}) {
mount(MainLayoutCtx, {
content: () => ()
});
}
});
};
made it work again. :-)
So it looks like this all goes wrong when you update to the latest Apollo CLient & Server.
The reason seems to be the use of the new GraphQL connector (HOC) to provide the props & state to the components.. (and the suggestion that this should all happen in the component?)
Need some time to explore how this actually works with Mantra..
This latest update brakes the Meteor Atmosphere package as well as this is community maintained... with no sign of an update.
All quite frustrating really.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.