IjzerenHein / firestorter

Use Google Firestore in React with zero effort, using MobX 🤘
http://firestorter.com
MIT License
378 stars 50 forks source link

Input Fields not Changing After Update #61

Closed gregoryanm closed 5 years ago

gregoryanm commented 5 years ago

Hello, I have some input fields on a component where once the value changes and I move on to the next document, the input field that was changed will not render new data. It only changes the data on the fields that have not had any edits. I tested one scenario if I make a change, and lets say I change the field on the backend it works. I assume I am bugging it out and should really use a modal or something? Everything is resolved once I refresh the browser or move on to another area. Just as long as the fields are refreshed.

IjzerenHein commented 5 years ago

Are you seeing any warnings in the console? Is it possible that the Input component you are using is a controlled component and therefore doesn't update?

gregoryanm commented 5 years ago

Jeez, bad move on my part, your tool was getting me excited so I was copying and pasting a alot of crap over... there it is defaultvalue... Thanks very much, and awesome tool!!!

IjzerenHein commented 5 years ago

Awesome, glad it works now :)