Skip to content

fix(core): correct useCustom return type during loading - #7519

Open
deepshekhardas wants to merge 1 commit into
refinedev:mainfrom
deepshekhardas:fix/use-custom-return-value-and-type
Open

fix(core): correct useCustom return type during loading#7519
deepshekhardas wants to merge 1 commit into
refinedev:mainfrom
deepshekhardas:fix/use-custom-return-value-and-type

Conversation

@deepshekhardas

Copy link
Copy Markdown

fix

- Changed result.data to return undefined instead of empty object while loading
- Updated type to CustomResponse<TData>[data] | undefined
- Added test to verify undefined data during loading state

Resolves refinedev#7088
@changeset-bot

changeset-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 010654f

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

This PR includes changesets to release 1 package
Name Type
@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

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.

2 participants