import { useLocation } from 'permalinks-hooks';

Uses current window location and adds enhanced functionality.

"root":{
"href":
string"https://permalinks-hooks.netlify.app/"
"pathname":
string"/"
"patharray":[
]
"search":
string""
"query":{
}
}
import { usePermalinks } from 'permalinks-hooks';
Prop nameTypeDefaultDescription
routesobject[]

Array of route objects

Receives an array of routes and matches the current url to return the a data object. The array of routes can be skipped by using the PermalinksConfig component as ancestor.

"root":{
}

@gwdevs/permalinks-hooks v1.1.0-beta.1