You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing a new post title and description inputs are already gets filled with a recent post's content. Also when write something in this input boxes and navigate to "share a link" tab and then come back to the "new post" tab, all my written content is longer displayed and I have to write them again.
Expected Behavior
It should behave normally and let the user type in the empty input boxes and while navigating in "share a link" and "new post" tab and written data must not get erased.
Steps to Reproduce Issue
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See the error
Solution Proposed
First we need to prevent the data that is being populated by default with some previous post values when user is trying to write a new post and this is very basic, we can simply initialize the input boxes with empty strings. And for the second problem of written data being erased while navigating back to "new post" tab, you can to store the written data of "new post" tab when user clicks on "share a link". These are some random solutions, I know you guys will come up with much better ones.
Screenshots
![Already populated text](https://drive.google.com/file/d/1UfOEwcqmXiJzly5w-JAWeftY5Y9YB8ph/view?usp=sharing)
![Written text being erased after navigating back to "new post"] tab(https://drive.google.com/file/d/1_gD-Cw9CzODS7mP0RgM7WiLtpkpuAtKJ/view?usp=sharing)
Environment
No response
Browsers
Brave
OS
Windows
Version of daily.dev
No response
Additional Context
No response
Code of Conduct
I follow the conditions of this project.
The text was updated successfully, but these errors were encountered:
@syedahmedullah14 thank you for reporting the issue! Feel free to use our GitPod setup to run the development environment. Inside the codebase, we have a component called WriteFreeformContent that houses the whole writing process. It involves working with a hook called useDiscardPost that manages the draft that is then stored in browser storage.
What went wrong? 🤔
While writing a new post title and description inputs are already gets filled with a recent post's content. Also when write something in this input boxes and navigate to "share a link" tab and then come back to the "new post" tab, all my written content is longer displayed and I have to write them again.
Expected Behavior
It should behave normally and let the user type in the empty input boxes and while navigating in "share a link" and "new post" tab and written data must not get erased.
Steps to Reproduce Issue
Solution Proposed
First we need to prevent the data that is being populated by default with some previous post values when user is trying to write a new post and this is very basic, we can simply initialize the input boxes with empty strings. And for the second problem of written data being erased while navigating back to "new post" tab, you can to store the written data of "new post" tab when user clicks on "share a link". These are some random solutions, I know you guys will come up with much better ones.
Screenshots
Environment
No response
Browsers
Brave
OS
Windows
Version of daily.dev
No response
Additional Context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: