Saturday, 27 May 2017

How to load changes instantly - React Native

Question

How do I load new data every time it is added to the server?

What I would like to have happen

  • User opens app
  • User uploads text to server
  • The app displays the text from the server immediately

What is currently happening

  • Users uploads text to server
  • User reloads app
  • The app displays the text from the server

Server Side

I am using expressJS for the server and then I am saving all of the text that the server gets to an off-site mongoose DB.

More info

  • I am using a Node JS server

  • I am using the fetch API to communicate between the server and the client

  • The client app is written with React Native



via pudility

No comments:

Post a Comment