In case anything goes wrong in your application or a page is not found, hydrate will handle it for you with a proper status code and an option to show your own custom 404 page.
import { initCustomError } from '@dpdk/library/utilities/hydrate';
initCustomError(<h1>This is our custom 404</h1>);
Note: The 404 page will receive data just like any other page except for the page data. So a default menu with glossary is still available.
Last modified | Monday, August 30, 2021, 2:00:02 PM UTC |
Last author | Colin van Eenige |
Commit ID | fd08685 |