question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HOC replacement hooks are not exported

See original GitHub issue

It seems useAsync, useCreatable and useStateManager are not exported at the moment while in the upgrade guide they are advertised as replacements for the preciously exported HOCs.

Can these exports be added?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ebonowcommented, Nov 5, 2021

@Akridian I’m happy to report that the PR for this was approved and has been merged and released as a part of v5.2.1

1reaction
Akridiancommented, Nov 2, 2021

I appreciate your attention.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do React Hooks Replace Higher Order Components (HOCs)?
It can get confusing to understand where props are coming from vs directly importing the behavior you depend on in the components that...
Read more >
Why React Hooks over HOCs - Robin Wieruch
export default withError; Note how the HOC passes all the props to the given component if there is no error. Everything should be...
Read more >
Unable to use hook in HOC for functional component
For starters, hooks are meant to be a replacement for HOC. However, you can definitely use hooks in a HOC which is a...
Read more >
Replacing redux HOCs with hooks - DEV Community ‍ ‍
A simple component which uses redux's connect HOC to provide <App /> component with getUsers , resetUsers and users prop. Let's see how...
Read more >
HOCs vs Hooks. What to use and why? - Devcore
Since then, an extensive discussion has arisen about whether or not hooks will replace common React patterns.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found