The idea behind lambda functions is to enable host projects to implement them in order to alter the behavior of the page/sections rendering to enable additional customizations.
The following won't read the return
These will be events emitted by the library
page_pre_render: When a page is loaded and about to be rendered, will contain the response from the API as a payload
The following will read the return and use it
page_pre_load: When a page is about to be loaded
section_pre_render: When a view section component is being picked up for rendering (before rendering)
The following will require a specific component to be implemented in the host project:
page_not_found: When a page was not found or it was requested for a non existing project, will contain the page name and qs requested as a prop
project_not_found: When a page was requested for a non existing project, will contain the page name and qs requested as a prop
The idea behind lambda functions is to enable host projects to implement them in order to alter the behavior of the page/sections rendering to enable additional customizations.
The following won't read the return
These will be events emitted by the library
page_pre_render
: When a page is loaded and about to be rendered, will contain the response from the API as a payloadThe following will read the return and use it
page_pre_load
: When a page is about to be loadedsection_pre_render
: When a view section component is being picked up for rendering (before rendering)The following will require a specific component to be implemented in the host project:
page_not_found
: When a page was not found or it was requested for a non existing project, will contain the page name and qs requested as a propproject_not_found
: When a page was requested for a non existing project, will contain the page name and qs requested as a prop