This is a holdover from #4123 , which was partially resolved by #4134 .
Expected Behavior
- You're logged in, editing your own project
- You do file->upload
- You see your new project, with a new url! great!
- You expect the title to match the filename of your local file
Actual Behavior
Project title is generic: 'Untitled-5'
Discussion
The problem is a bit tricky...
Basically the project-state goes through the states:
loading upload ->
showing without id ->
creating new
It's at that creating new step that we want to set the new title. The problem is that from that point, you can look back one state (using prevprops) easily, but there’s no immediately obvious way in project-saver-hoc to say “oh, we’re creating a new project because of an upload, it’s not a new default project”.