Skip to content

Commit

Permalink
docs(readme) add inferActionName example
Browse files Browse the repository at this point in the history
  • Loading branch information
alimertcakar committed Jan 30, 2025
1 parent 6d5b4ab commit 85e14c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ If an action type is not provided, it is defaulted to "anonymous". You can custo
devtools(..., { anonymousActionType: 'unknown', ... })
```
If you like to try to infer the action type from the function name, you can set `inferName` to `true`:
```jsx
devtools(..., { inferActionName: true, ... })
```
If you wish to disable devtools (on production for instance). You can customize this setting by providing the `enabled` parameter:
```jsx
Expand Down

0 comments on commit 85e14c3

Please sign in to comment.