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

moving to aliased import #1264

Merged
merged 4 commits into from
Apr 17, 2019
Merged

moving to aliased import #1264

merged 4 commits into from
Apr 17, 2019

Conversation

alexreardon
Copy link
Collaborator

No description provided.

@alexreardon alexreardon merged commit d9b17f5 into master Apr 17, 2019
@alexreardon alexreardon deleted the use-memo-one-linting branch April 17, 2019 22:52
import { bindActionCreators } from 'redux';
import { Provider } from 'react-redux';
import { useMemoOne, useCallbackOne } from 'use-memo-one';
import { useMemo, useCallback } from 'use-memo-one';
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? They may be confused with original react hooks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It works nicer with eslint-plugin-react-hooks which matches on useMemo and useCallback

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is up to you though. You can still use import { useMemoOne } from 'use-memo-one'

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, okay. Didn't think about lint rule.

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