Skip to content

Comments

feat: add strictStateCheck option to disable state warnings#282

Open
sizeak wants to merge 1 commit intojorisre:mainfrom
sizeak:feat/strict-state-check-option
Open

feat: add strictStateCheck option to disable state warnings#282
sizeak wants to merge 1 commit intojorisre:mainfrom
sizeak:feat/strict-state-check-option

Conversation

@sizeak
Copy link

@sizeak sizeak commented Nov 28, 2025

Hi,

We're using this library but we'd like to be able to disable the warning logs when multiple calls of request / release are triggered in a row. Would you be happy to include this functionality? Happy to make changes if you're not a fan of how I've implemented it.

Thanks for the library!

Changes

Add a new strictStateCheck option (default: true) that controls whether warnings are logged when request/release are called in invalid states. Setting it to false makes these methods fully idempotent with no console output, while still preventing duplicate API calls.

Add a new `strictStateCheck` option (default: true) that controls whether
warnings are logged when `request`/`release` are called in invalid states.
Setting it to `false` makes these methods fully idempotent with no console
output, while still preventing duplicate API calls.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Nov 28, 2025

@sizeak is attempting to deploy a commit to the Joris' projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant