Run the local dev shell
Configure sample data
The dev shell reads sample sources fromdata/*.json at the worker root when it starts. Each file defines one source. Restart the dev shell after changing these files.
For the quickstart’s issues declaration, create data/issues.json:
- Select your custom block.
- Connect each declared data source to a sample source.
- Check the property mappings. Map
titleto Title andstatusto Status for this example. - Save the bindings to render the block.
What is real and what is not
Your block gets the same context a real Notion page provides: a block ID, a parent and page, a current user, user settings. Data sources are the interesting part. In Notion, a block does not render until every data source it declares is bound to a real one. In the dev shell, you connect them to sample sources and map their properties before the block renders. Those rows are not your workspace’s rows, so treat the dev shell as an approximation. Anything permissions-sensitive needs a second look once the block is bound to real data.If a block will not load
Press\ inside a running block to log the messages passing between it and the host. It is the fastest way to see why a block is stuck loading.
This is built into NotionCustomBlock, so it is only available to blocks using the React SDK.
Ship it
When everything looks right, runntn workers deploy to deploy your changes to live block instances.