Location Trigger
Create Trigger based on location change action
This is advanced trigger usage requires to use something like NavigationSink
, the trigger watches on navigation/location
action to update sink state
Create sink with a location trigger
on location change to /weather
this sink will fire a loadWeather
the event, to use this so we don't need to call effect inside the component life cycle event
Last updated