Skip to content

Commit

Permalink
Update readonlyMiddleware.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergonz authored Mar 1, 2025
1 parent 707bdb0 commit f6e2a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/site/docs/actionMiddlewares/readonlyMiddleware.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ slug: /action-middlewares/readonly-middleware

## Overview

Attaches an action middleware that will throw when any action is started over the node or any of the child nodes, thus effectively making the subtree readonly. \* It will return an object with a `dispose` function to remove the middleware and an `allowWrite` function that will allow actions to be started inside the provided code block.
Attaches an action middleware that will throw when any action is started over the node or any of the child nodes, thus effectively making the subtree readonly. It will return an object with a `dispose` function to remove the middleware and an `allowWrite` function that will allow actions to be started inside the provided code block.

Example:

Expand Down

0 comments on commit f6e2a9d

Please sign in to comment.