Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

abstract out react-route requirement for Asset{List,Form} #27

Open
rjw57 opened this issue Feb 2, 2018 · 0 comments
Open

abstract out react-route requirement for Asset{List,Form} #27

rjw57 opened this issue Feb 2, 2018 · 0 comments
Labels

Comments

@rjw57
Copy link
Member

rjw57 commented Feb 2, 2018

Instead of using directly inside Asset{List,Form}, the "react-y" way is probably to have an onNavigateToAsset prop or similar which is called when the user wants to navigate to an asset. (E.g. by clicking on the item in the list.) This can navigate the browser in the application but can simply set a flag in test to check it was called.

@rjw57 rjw57 added the idea label Feb 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant