Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(devtools-internal): fix NODE_ENV conditional #5992

Merged
merged 4 commits into from
May 29, 2024

Conversation

aliemir
Copy link
Member

@aliemir aliemir commented May 27, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

Changes

When using Refine with React Native, process.env.NODE_ENV !== "development" ? () => ({}) : () => {...} conditional in useQuerySubscription hook was causing a syntax error. This PR fixes the issue by explicitly returning an empty object on non-development environments.

Screenshot 2024-05-27 at 11 19 10

Not sure why this happens but using parentheses to return an empty object throws syntax error on React Native environment.

RK-671

@aliemir aliemir requested review from a team as code owners May 27, 2024 08:20
Copy link

changeset-bot bot commented May 27, 2024

🦋 Changeset detected

Latest commit: 4654353

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@refinedev/devtools-internal Patch
@refinedev/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@aliemir aliemir changed the base branch from releases/june to master May 27, 2024 08:21
@aliemir aliemir changed the base branch from master to releases/june May 27, 2024 08:21
@aliemir aliemir changed the base branch from releases/june to master May 27, 2024 08:23
@aliemir aliemir changed the base branch from master to releases/june May 27, 2024 08:23
Copy link

cypress bot commented May 27, 2024

Passing run #11140 ↗︎

0 379 37 0 Flakiness 0

Details:

Merge 4654353 into 3f4dea9...
Project: refine Commit: 2c7608b33a ℹ️
Status: Passed Duration: 21:50 💡
Started: May 27, 2024 8:36 AM Ended: May 27, 2024 8:58 AM

Review all test suite changes for PR #5992 ↗︎

@aliemir aliemir added this to the June Release milestone May 28, 2024
@BatuhanW BatuhanW merged commit a2e53d2 into releases/june May 29, 2024
90 checks passed
@BatuhanW BatuhanW deleted the fix/devtools-internal-env-conditional branch May 29, 2024 06:48
@aliemir aliemir mentioned this pull request May 29, 2024
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.

4 participants