« first day (176 days earlier)      last day (544 days later) » 

5:25 AM
gm
 
 
2 hours later…
7:02 AM
go @KyleKhalaf
go language ]
 
7:22 AM
and I am building in react-redux
 
@KyleKhalaf NodeJS ?
@KyleKhalaf I doubt if it allows you to build a server to respond to your requests
 
 
1 hour later…
8:55 AM
@MayankShukla hey
 
hi
@Chris i don't use arrow function for these cases so that's why asked, is there any benefit of using here arrow function?
 
Oh, no no. Just a personal preference. Because then I don't ever need to worry about binding. So if you modify the function somehow, you wouldn't need to convert it.
but I was wondering something else...
How come it doesn't complain about duplicate keys? I have the function run 3 times and the keys are static 0,1 and 2 and they are siblings to eachother
so the 9 tr's should have keys, in order: 0, 1, 2, 0, 1, 2, 0, 1, 2. Or does it?
@MayankShukla If I remove the function call completely, and just enter the 9 tr's within render() directly, with the duplicate keys: 0, 1, 2, 0, 1... then the result messes up. But not if it comes from the function like in my demo. Bit weird, no?
 
yes it is
i checked that and it's not throwing the error
but ideally it should
 
yeah... I'd love an explanation from an expert on this
 
great observation :)
 
9:04 AM
yeah thanks
 
will try to find out the reason and let you know
 
I'll post a new question.
 
sure :)
 
9:25 AM
@Chris first vote from me on that, btw very nicely asked the ques
 
@MayankShukla, thanks and thanks :)
 
@Chris check these two links
check the constructor part when using = () =>
@Chris i think for the answer of that ques we need to wait for some expert like: stackoverflow.com/users/218196/felix-kling
 
 
1 hour later…
10:52 AM
I have a problem in reactjs

Here is my function

   reminder(id){
      this.setState({
        openS: true
    });
      this.props.dispatch(reminderfreelancers(id))
      this.props.dispatch(getUsers('freelancer'))
  }
and this is store action function to call

export function reminderfreelancers(id){
   return (dispatch) => {
    axios({
      method: 'POST',
      url: (HOSTNAME+'/dashboard/reminderfreelancer'),
      data: JSON.stringify(id)
    })
    .then((res) => {
    // console.log('in response',res)
      // if (res.data.data[0].success) {
      //     dispatch(getProjectDispatch(res.data.data[0].data))
      //   }
    })
      .catch((err) => {
      console.log('in err',err)
    })
  }
}
and show this error

Uncaught TypeError: Converting circular structure to JSON
at JSON.stringify (<anonymous>)
at eval (index.js:2064)
at Object.eval [as dispatch] (index.js:11)
at Manage.reminder (manage.js:126)
at EnhancedButton._this.handleClick (EnhancedButton.js:142)
at Object.ReactErrorUtils.invokeGuardedCallback (ReactErrorUtils.js:69)
at executeDispatch (EventPluginUtils.js:85)
at Object.executeDispatchesInOrder (EventPluginUtils.js:108)
at executeDispatchesAndRelease (EventPluginHub.js:43)
anyone please some suggestion
?
 
11:18 AM
anyone is there?
 
 
4 hours later…
3:18 PM
@sport I really don't know from where to start. I picked up a react native application and developed it. Now I have to build some features that require a server. I know that we are targeting both Android and IOS for the long run (but just IOS at the moment).

The server has to get requests from users, do some logic, get data from a database based on the logic, and send back the result.
cc: @TGMCians
Can you guys guide me? Tutorials, your information, advices.. etc
I come from C#, C++, Java background and I recently learned Javascript with react native
 
3:57 PM
You have various options
If you are Java developer then go for Spring rest web service
or jersey rest web services
You need to manager server own for this.
If you don't want to purchase AWS/Heroku cloud then
firebase is best for you
you can do code in nodejs there
and save data in mongodb
You can start to read this
 

« first day (176 days earlier)      last day (544 days later) »