Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing the set state #3258

Open
lpatiny opened this issue Oct 5, 2024 · 1 comment
Open

Testing the set state #3258

lpatiny opened this issue Oct 5, 2024 · 1 comment
Assignees

Comments

@lpatiny
Copy link
Member

lpatiny commented Oct 5, 2024

I would like to be able to drag / drop a file / folder, to convert using nmr-load-save and set the initial state of NMRium.

So after drag / drop we should have a code similar to:

read(fileCollection))
      .then((state) => {
        setNmriumBaseState(state.nmriumState.data);
      })

This new page could go in the debug menu

Image

@hamed-musallam
Copy link
Member

@lpatiny

We similar example which slightly different but it serves the same purpose Ref API which uses the nmriumRef.current?.loadFiles which at the end calls the read function from nmr-load-save.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants