rooks icon indicating copy to clipboard operation
rooks copied to clipboard

No example for useAsyncEffect

Open ddsuhaimi opened this issue 2 years ago • 3 comments

Currently, no example is found for useAsyncEffect()

Check out the docs

ddsuhaimi avatar Aug 23 '22 15:08 ddsuhaimi

@ddsuhaimi Ah that's true. Would you like to try adding an example in a PR? Would appreciate it very much!

imbhargav5 avatar Aug 24 '22 12:08 imbhargav5

@ddsuhaimi Ah that's true. Would you like to try adding an example in a PR? Would appreciate it very much!

I am not sure how useAsyncEffect works to be honest, do I just copy this example?

ddsuhaimi avatar Aug 29 '22 05:08 ddsuhaimi

@ddsuhaimi There is also an example in the test case here. https://github.com/imbhargav5/rooks/blob/main/packages/rooks/src/tests/useAsyncEffect.spec.ts#L175

As long as it covers at least the ones in the test cases, the PR will be super 🔥

imbhargav5 avatar Aug 29 '22 06:08 imbhargav5

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 20 '23 09:03 stale[bot]