conda-incubator / conda-store-ui

conda-store-ui is a frontend for conda-store powered by react
https://conda-incubator.github.io/conda-store-ui/
BSD 3-Clause "New" or "Revised" License
13 stars 19 forks source link

Store environment form values in hash object #400

Open gabalafou opened 5 months ago

gabalafou commented 5 months ago

Fixes #394.

IMPORTANT: DRAFT

I'm uploading this PR as a draft so folks can take a look if they're curious. But I'm not sure it should be merged. I think we should first see if #389 prevents the issues mentioned in #385 from surfacing.

Why?

Description

This pull request enables a user to start filling out a form to create an environment in a particular namespace, abandon the form, start a second form to create another environment in a different namespace, then return to the first form with all of their changes still in place. It persists state between pushState navigations, such as clicking a link or use the back button, but it does not persist state between page loads such as if the user presses the refresh button, opens a link in a new tab or window, or enters a URL directly into the browser address bar. It stores form values in a hash object in app memory

Pull request checklist