Ohara: [Question] Should we move the Settings Dialog from react context to redux state?

Created on 17 May 2020  ·  9Comments  ·  Source: oharastream/ohara

I've faced a strange problem:

  1. create workspace w1 and w2
  2. switch to workspace w1, and click Settings
  3. Delete this workspace
  4. UI will redirect to head workspace /w2, but the Settings Dialog will remain open (It is w2 Settings Dialog)

Since I cannot close this dialog after epic finished, have no clue how to achieve this...

Most helpful comment

恩...對,還有passing function的方法,我忘了XD
的確是可以暫時先將這個問題處理掉 👍
只是希望之後還是可以將這類操作一併在Epic內解決,感謝 @eechih !

我先把這個issue留著做紀錄

All 9 comments

/cc @oharastream/frontend

Since I cannot close this dialog after epic finished, have no clue how to achieve this...

I think we can and should probably move the state to redux, but this will need to change a lot of files and code. Maybe we could do this in 0.11? As for now, can we just pass settings dialog's close handler down to the progress bar dialog?

As for now, can we just pass settings dialog's close handler down to the progress bar dialog?

This is the problem I faced. Since the data flow of epics is action-in-out, the close handler could not be triggered normally if we passed it down to the progress bar (it will close the Dialog immediately and do the delete works in the background...)

Ah, you're right. Didn't think about that. So this issue still exist even after is merged, right
https://github.com/oharastream/ohara/pull/4910

Sadly, yes 😞

QQ... cc @eechih and @wu87988622

@saivirtue @konekoya 請參考 NodeListDialog.handleCreate 作法,看看是否有幫助?

恩...對,還有passing function的方法,我忘了XD
的確是可以暫時先將這個問題處理掉 👍
只是希望之後還是可以將這類操作一併在Epic內解決,感謝 @eechih !

我先把這個issue留著做紀錄

This issue could not be reproduced after #5510, close now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saivirtue picture saivirtue  ·  5Comments

HarryChiang143 picture HarryChiang143  ·  3Comments

eechih picture eechih  ·  3Comments

wu87988622 picture wu87988622  ·  3Comments

eechih picture eechih  ·  4Comments