Save location (#534)
* add location * remove zopfli from build * state.location -> state.href * add state.href docs
This commit is contained in:
@@ -236,6 +236,9 @@ The current params taken from the route. E.g. `/foo/:bar` becomes available as
|
||||
An object containing the current queryString. `/foo?bin=baz` becomes `{ bin:
|
||||
'baz' }`.
|
||||
|
||||
### `state.href`
|
||||
An object containing the current href. `/foo?bin=baz` becomes `foo`.
|
||||
|
||||
### `state.route`
|
||||
The current name of the route used in the router (e.g. `/foo/:bar`).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user