getCurrentPages
Requires:
@ray-js/ray≥0.2.0
Method signature
getCurrentPages()Description
Get the current page stack. Returns an array of page objects; the first element is the home page and the last element is the current page.
Parameters
None
Return Value
Type: PageInstance[]
Page stack array; each element is a PageInstance object
Referenced Types
interface
PageInstancePage instance object| Property | Type | Description |
|---|---|---|
pageId | string | Unique page identifier |
route | string | Page path |
options | Record<string, unknown> | Page parameter object (query parameters passed during navigation) |
data | Record<string, unknown> | Page data object |