Add shouldPrefetch() method to avoid setting loading state unnecessarily (#249)
Add shouldPrefetch() method to avoid setting loading state unnecessarily (#249)

* Added shouldPrefetch function to check if route has data requirements

* Added condition to if statement in wrapped routing methods

This will ensure a prefetch is only attempted if there is data for the path

nozzle/react-static,nozzle/react-static