Describes the current location parsed from the page route. Args: pathname: URL path portion (e.g. `/products/42`). search: Query string portion without leading `?`. hash: Fragment portion without leading `#`.
| 110 | |
| 111 | @dataclass |
| 112 | class LocationInfo: |
| 113 | """ |
| 114 | Describes the current location parsed from the page route. |
| 115 | |
| 116 | Args: |
| 117 | pathname: URL path portion (e.g. `/products/42`). |
| 118 | search: Query string portion without leading `?`. |
| 119 | hash: Fragment portion without leading `#`. |
| 120 | """ |
| 121 | |
| 122 | pathname: str |
| 123 | search: str = "" |
| 124 | hash: str = "" |
| 125 | |
| 126 | |
| 127 | # --------------------------------------------------------------------------- |