Components
CraftNotImplemented
Learn how to use the CraftNotImplemented component.
The CraftNotImplemented
component is a small development helper with the following purposes:
- Display Unimplemented Components or Pages: Shows a message indicating any block type that hasn’t been implemented yet.
- Show the data: Outputs the data in a readable format for easier debugging.
Usage
You can use the CraftNotImplemented
component in your contentMapping
configuration to handle cases where a specific page or component has not been implemented yet.
import { craftInit, CraftNotImplemented } from '@query-api/next'
craftInit({
...otherConfig,
contentMapping: {
pages: {
home: CraftNotImplemented,
},
components: {
imageText: CraftNotImplemented,
},
},
})