AutarkLabs / open-enterprise

A suite of apps that includes allocation, dot voting, issue curation, and other planning tools so organizations can collectively budget and design custom reward & bounty systems.
GNU General Public License v3.0
92 stars 54 forks source link

Minimum Viable AragonRouter #1750

Closed chadoh closed 4 years ago

chadoh commented 4 years ago

The magic of ReactRouter is mostly powered by the history module. To make our own AragonRouter, I implemented a minimal version of AragonHistory. Then, in the AragonRouter component, I listen for updates to path and pass them along to AragonHistory.

I've demonstrated how this can be used by implementing some basic routing in Allocations. Note that the allocations app itself never needs to bother with usePath.

chadoh commented 4 years ago

Closing for now; this was a good proof-of-concept but I don't want to distract us with this conversation right now. I've implemented the Budget Detail view with raw usePath; see it at #1758