GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing nullstack.app — Full Stack Lifecycle - Nullstack Full Stack LifecycleLifecycle methods are special named functions that you can declare in the class. Each lifecycle method runs in a specific order in a queue so it's guaranteed that all components initiated in that cycle will be prepared before the first one is initiated. PrepareThis method is blocking and runs before the first time the component is rendered. You can use this function to set the state that the user will see before things are loaded. If the user is entering from this route If the user is navigating from another route this method will run in the client.
InitiateThis method can be async and runs right after the component is prepared and rendered for the first time. You can use this function to invoke another server function and load the data to present the page. If the user is entering from this route Nullstack will wait till the promise is resolved and then finally generate the HTML that will be served. If the user is navigating from another route this method will run in the client. After this method promise is fulfilled
LaunchRuns before pre-rendering and at each awakening. You can update the component with things that doesn't require data fetching operations.
HydrateThis method is async and will only run in the client. This method will always run no matter which environment started the component. This is a good place to trigger dependencies that manipulate the dom or can only run on the client-side. After this method promise is fulfilled
UpdateThis method is async and will only run in the client. This method runs on every component anytime the application state changes.
This will run right before rendering but will not block the rendering queue. The
TerminateThis method is async and will only run in the client. This method will run after your component leaves the DOM. This is the place to clean up whatever you set up in the The instance will be garbage collected after the After this method promise is fulfilled
Next Step➡️ Learn more about Core Features: Server functions❓ Have any questions or suggestions? Join our Discord |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |