Closed pleek91 closed 6 months ago
Name | Link |
---|---|
Latest commit | dab032512600238c5b1e1bc87f80a00eec080140 |
Latest deploy log | https://app.netlify.com/sites/kitbag-router/deploys/65fef45018f3700008eb71b3 |
Deploy Preview | https://deploy-preview-108--kitbag-router.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Description
Prior to this there was a single utility for executing route hooks that would return a boolean based on if something like a
push
,replace
, orreject
happened. This wasn't enough information for theupdate
method increateRouter
to know what to do.I've added stronger types for
BeforeRouteHook
andAfterRouteHook
and defined types forBeforeRouteHookResponse
andAfterRouteHookResponse
. Each response has a status likeabort
,push
,reject
, orsuccess
. Theabort
status is new altogether and is only included for before hooks.