import * as udiboReactApp from "https://deno.land/x/udibo_react_app@0.2.0/app_server.tsx";
Variables
For internal use only. This router renders the application on get requests. It is used for all route components that do not have route middleware. | |
Gets environmental variables. In the browser, only environmental variables shared with it by the server will be accessible. | |
Used to determine if the code is running in the browser. | |
Used to determine if the code is running in the development environment. | |
Used to determine if the code is running in the production environment. | |
Used to determine if the code is running on the server. | |
Used to determine if the code is running in the test environment. |
Functions
Wraps an API router with an error handler that responds with the error in json format. | |
Creates a Udibo React App. | |
Creates a context object for the App. State stored within the AppContext will be serialized and shared with the browser. | |
Creates an oak router for your application. | |
This middleware ensures all errors in the route are HttpErrors. If an error isn't an HttpError, a new HttpError is created with it as the cause. If a boundary is specified, it will add the boundary to the HttpError. If an AppErrorBoundary exists with a matching boundary, it will be used to handle the error. If a boundary is not specified, the first AppErrorBoundary without a boundary specified will handle the error. If a boundary is specified, but no AppErrorBoundary exists with a matching boundary, the error will go unhandled. | |
Checks if the value as an HttpError. | |
This function tells the dev server when the app server is listening. If you are not using serve, you must add an event listener to your app that will call this function once it's listening. If this function is not called, the browser will not automatically refresh when the app server is restarted. If called before the app server is listening, the browser will refresh before the app server is ready to handle the request. This function will not do anything if the app is not running in development mode. | |
The default renderToReadableStream function. If you'd like to transform the stream before it is returned to the client, you can wrap this function with a custom renderToReadableStream function. | |
Creates and serves a Udibo React App. |
Interfaces
Options for initializing an HttpError. | |