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

fix(RemoteData, function-resource): wrapped template usage #490

Merged
merged 2 commits into from
May 20, 2022

Conversation

NullVoxPopuli
Copy link
Owner

@NullVoxPopuli NullVoxPopuli commented May 19, 2022

In order to use RemoteData as template-resource, we need
another helper manager, and we need to register it as well.
This ends up resulting in nested helper-manager invocation for a
single helper-invocation call.

Resolves: #486

Todo

  • update docs for RemoteData for use in templates
  • update docs for resource for use in templates
  • add tests for resource in templates
    • be sure to test lifecycle
    • be sure to test the wrapper function helper - that it retains the same lifecycle behavior
  • write docs for authoring addons / libraries / utilities using resources and supporting strict mode or "anything as values" mentality

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 20, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: aa806e3
Status: ✅  Deploy successful!
Preview URL: https://e42849df.ember-resources.pages.dev

View logs

@github-actions
Copy link
Contributor

github-actions bot commented May 20, 2022

Estimated impact to a consuming app, depending on which bundle is imported

js min min + gzip min + brotli
/core/index.js 3.84 kB 1.75 kB 832 B 698 B
/util/ember-concurrency.js 5.21 kB 1.54 kB 737 B 625 B
/util/function-resource.js 8.27 kB 2.2 kB 866 B 725 B
/util/function.js 3.36 kB 1.23 kB 577 B 492 B
/util/helper.js 1.8 kB 303 B 218 B 177 B
/util/map.js 4.07 kB 1.29 kB 679 B 576 B
/util/remote-data.js 2.97 kB 1.2 kB 567 B 495 B

@NullVoxPopuli NullVoxPopuli force-pushed the remote-data-in-templates branch 4 times, most recently from 9893ba7 to d987136 Compare May 20, 2022 02:12
In order to use RemoteData as template-resource, we need
_another helper manager_, and we need to register it as well.
This ends up resulting in _nested_ helper-manager invocation for a
single helper-invocation call.
@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review May 20, 2022 18:19
@NullVoxPopuli NullVoxPopuli merged commit 79b40cc into main May 20, 2022
@NullVoxPopuli NullVoxPopuli deleted the remote-data-in-templates branch May 20, 2022 18:32
@github-actions
Copy link
Contributor

🎉 This PR is included in version 4.8.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

remoteData and RemoteData do net work directly in template-only components
1 participant