GetDKAN / data-catalog-frontend

9 stars 3 forks source link

Update frontend to work with dkan2 master and new hooks in components #6

Closed dgading closed 5 years ago

dgading commented 5 years ago

I didn't include an updated package.json with this PR, but it should be tested using this branch on the DKAN components repo: github:GetDKAN/data-catalog-components#hooks-n-context

This PR aims to catch the search features on the demo build to work with more varying datasets. It switches to maintaining all the search state through useState hooks and passing that to various hooks in the component repo. The goal is to have the actual fetching of data be a side effect of the changes the user makes. It includes the url parameter saving and also updated Hero work to make sure the home page links to the search correctly.