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

feat: safeLoad function for catching load errors #11

Merged
merged 1 commit into from
Jun 16, 2022
Merged

Conversation

Akolyte01
Copy link
Collaborator

@Akolyte01 Akolyte01 commented Jun 16, 2022

This PR adds a 'safeLoad' function that can be used to catch load errors

example usage

{#await safeLoad(myStore) then success}
  {#if !success}
    <ErrorBanner/>
  {/if}
  <ComponentContent>
{/await}

@Akolyte01 Akolyte01 marked this pull request as ready for review June 16, 2022 18:30
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.

None yet

1 participant