Closed sverhoeven closed 7 years ago
Change viewer url to /ligands-and-proteins"
, other viewers should also use kebab case.
There also is /pharmacophores
route now.
We switched from redux-saga
to redux-observable
, in https://github.com/3D-e-Chem/molviewer-tsx/blob/master/src/sse/epic.ts use switch handle SERVER_MODEL_CHANGED action for each route.
Use react-router to select viewers.
The current single viewer should have
/LigandsAndProteinsViewer
as url. When no viewer is passed in url then give a not found error.The SERVER_MODEL_CHANGED saga is hardcoded for the current viewer. Other viewers will want to overwrite the saga with their own functionality. See
https://github.com/yelouafi/redux-saga/issues/76
for a possible solution