Comments (2)
Sorry, I don't have a repo where you can test. I did figure out how to get around it. I found the code in std_accounts-ui.js where it was hanging up
this.setState({ waiting: true }); // 604
//
var SignUp = function () { // 606
function SignUp(_options) { // 606
var _this6 = this; // 606
//
Accounts.createUser(_options, function (error) { // 607
if (error) { // 608
_this6.showMessage(T9n.get('error.accounts.' + error.reason) || T9n.get("Unknown error"), 'error'); // 609
if (T9n.get('error.accounts.' + error.reason)) { // 610
_this6.state.onSubmitHook('error.accounts.' + error.reason, formState); // 611
} else { // 612
_this6.state.onSubmitHook("Unknown error", formState); // 614
} // 615
} else { // 616
_this6.setState({ // 618
formState: STATES.PROFILE, // 619
message: null, // 620
password: null // 621
}); // 618
var user = Accounts.user(); // 623
loginResultCallback(_this6.state.onPostSignUpHook.bind(_this6, _options, user)); // 624
} // 625
//
_this6.setState({ waiting: false }); // 627
}); // 628
}
I noticed the loginResultCallBack had onPostSignUpHook. I was trying to get familiar with the events so I was doing
onPreSignUpHook: (options) => {
console.log('preSignUpHook');
console.log(options);
},
When I removed that it worked fine.
from accounts-material-ui.
@philcruz do have a repo where I can test this issue?
also, could you try setting up the state?
import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { Accounts } from 'meteor/std:accounts-ui';
import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card';
import Paper from 'material-ui/Paper';
import {STATES} from 'meteor/std:accounts-ui';
class Login extends Component {
render() {
const style = {
width: 500,
};
return (
<MuiThemeProvider>
<Accounts.ui.LoginForm formState={STATES.SIGN_UP} />
</MuiThemeProvider>
);
}
}
export default Login;
from accounts-material-ui.
Related Issues (19)
- Not able to update HOT 3
- Objects not valid as React Child HOT 12
- Button's href prop doesn't work
- It doesn't work with std:[email protected] HOT 4
- Make it compatible with formMessages
- Make it compatible with TextField inline messages
- Best way to translate the form HOT 1
- Upgrade to [email protected] HOT 2
- DraftJS Kills <Accounts.ui.LoginForm /> - I donβt know why! HOT 1
- Should it not be this.TextField = ref?
- Material.ui 0.17.1 compatibility HOT 1
- Material-Ui Version 17 or 18 Breaks This Package
- Package imports additional React and babel-runtime to client
- No logout button after upgrading from std:[email protected] to 1.2.21 HOT 1
- Material 1.0.x support HOT 5
- Remove fix once it is fixed in std:accounts-ui HOT 10
- [email protected] needed? HOT 19
- Exception in delivering result of invoking 'login' HOT 2
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 accounts-material-ui.