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

Determine if assets should auto download or not #7

Open
edorphy opened this issue Dec 27, 2021 · 0 comments
Open

Determine if assets should auto download or not #7

edorphy opened this issue Dec 27, 2021 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@edorphy
Copy link
Owner

edorphy commented Dec 27, 2021

CloudKit Framework auto-downloads asset fields in records. CloudKit JS does not.

Determine if we want this behavior to auto-download assets (without caching).

Pros:

  • Easier API
  • Closer to CloudKit behavior

Cons:

  • No caching support at the API
  • Special handling might be required for different kinds of assets
  • Lightweight models, less network if consumer doesn't use desired keys and gets all by accident

Other Considerations:

  • AsyncImage takes an optional URL. Procedure
    • onAppear, fetch a record containing an asset
    • then once the asset is received, load the image.
@edorphy edorphy added enhancement New feature or request question Further information is requested labels Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant