Hacker News new | past | comments | ask | show | jobs | submit login

"On the one hand we might save the data that they have just inputted. But what if the user selects another row? We should display data related to the row selected. Thus, it won't work."

At least in React, upon initializing the Modal state is passed to the modal through props. If the user clicks out of the modal, a single value in the state is changed, the rest of the data the user entered in the modal is still there. If the user opens another row, new data should be loaded into the modal. Perhaps I am not seeing the problem with this specific use case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: