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

更好的异常处理 #1

Open
awmleer opened this issue Jun 24, 2019 · 1 comment
Open

更好的异常处理 #1

awmleer opened this issue Jun 24, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@awmleer
Copy link
Owner

awmleer commented Jun 24, 2019

No description provided.

@awmleer awmleer added the enhancement New feature or request label Jun 24, 2019
@awmleer awmleer self-assigned this Jun 24, 2019
@awmleer
Copy link
Owner Author

awmleer commented Sep 9, 2019

const data = useAsyncMemo(async () => {
  try {
    return await apiService.fetch('/data')
  } catch() {
    return {user: 1}
  }
}, [], null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant