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

Add list of aliased ahooks methods to the transform rules #54657

Closed
wants to merge 1 commit into from

Conversation

liuyib
Copy link

@liuyib liuyib commented Aug 28, 2023

follow up: #53051

ahooks follows the naming rule of Name being exported from /{{Name}}, but it has some special aliases such as:

  • createUpdateEffect exported from /createUpdateEffect
  • useResponsive, configResponsive exported from /useResponsive
  • clearCache exported from /useRequest

For now we have to add these rules manually.

Fixes alibaba/hooks#2263. In the future we'll still need an automatic way to do this.

The list was created from https://unpkg.com/ahooks@3.7.8/es/index.js.

@vercel-spaces
Copy link

vercel-spaces bot commented Aug 28, 2023

Notifying the following users due to files changed in this PR based on this repo's notify modifiers:

@timneutkens, @ijjk, @shuding, @styfle, @huozhi:

packages/next/src/server/config.ts

Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@liuyib
Copy link
Author

liuyib commented Dec 26, 2023

has been solved in: https://github.com/vercel/next.js/pull/59294/files

@liuyib liuyib closed this Dec 26, 2023
@github-actions github-actions bot added the locked label Jan 9, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useResponsive giving error
2 participants