chrbala / parse-redux Goto Github PK
View Code? Open in Web Editor NEWThis project forked from parse-community/parse-sdk-js
Drop-in replacement for Parse with added Redux goodness!
Home Page: https://parse.com
License: Other
This project forked from parse-community/parse-sdk-js
Drop-in replacement for Parse with added Redux goodness!
Home Page: https://parse.com
License: Other
As we have started discussing here on the commit I like to do some follow up discussion.
When I use Parse.User.current()
after having logged in a user the object looks like this:
So when I want to use any properties of the user I need to use the getter and map them a new object:
Something like this
getParseUser() {
let user = Parse.User.current()
return {
username: user.getEmail(),
myProp: user.get('myProp')
}
}
But I don't want to maintain the User's Object Attributes on multiple occurrences in my code.
So is there a way to access a reference to the User Object that looks a bit more like the server data:
serverData: {
createdAt: Sat Jan 09 2016 14:48:55 GMT+0100 (CET)
sessionToken: "r:CxucYoDheD6bnsc67rvXD2VU5"
test: true
updatedAt: Sat Jan 09 2016 14:48:55 GMT+0100 (CET)
username: "[email protected]"
}
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.