Skip to content

crelte /

crelte

Interfaces

InterfaceDescription
LoadDataArray-
LoadDataFn-
LoadDataObj-

Type Aliases

Type AliasDescription
AppPropsThe Props that are passed to the app
ConfigThe type for the app.config object
CrelteThis is Crelte a container of useful features and functions.
CrelteRequestThis is Crelte a container of useful features and functions.
CrelteWithRouteThis is Crelte a container of useful features and functions.
InitThe type for the app.init function
LoadDataLoad data function

Functions

FunctionDescription
getBodyClassreturns the body class instance
getCookiesreturns the cookies instance
getCrelteGet Crelte from the current context
getEntryGet a store with the current entry
getEnvreturns an env variable from the craft/.env file. All env variables need to start with VITE_ except ENDPOINT_URL, CRAFT_WEB_URL and FRONTEND_URL
getGlobalreturns a store which contains a globalSet
getLoadingreturns a store which indicates if the a page is loading
getLoadingProgressreturns a store which indicates the loading progress between 0 and 1
getQueriesGet the Queries from the current context
getRouteGet a store with the current route
getRouterGet the router from the current context
getSiteGet a store with the current site
getSsrCacheGet the SSR cache from the current context
onRequestListen for requests
onRouteListen for route changes