Skip to content

Update handler.js to allow access to MUTATION_OPS #21

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

cloke
Copy link
Contributor

@cloke cloke commented Apr 24, 2025

This moves mutation ops to a constant outside the object. The original example will result in MUTATION_OPS not found.


This pull request refactors the updatesHandler in snippets/updating-data/create-record/handler.js to improve code clarity by separating the MUTATION_OPS constant from the updatesHandler object.

Code clarity improvements:

This moves mutation ops to a constant outside the object. The original example will result in MUTATION_OPS not found.
Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for request-service-cheat-sheet ready!

Name Link
🔨 Latest commit 33fdcc2
🔍 Latest deploy log https://app.netlify.com/sites/request-service-cheat-sheet/deploys/680a3ed30e989300086729df
😎 Deploy Preview https://deploy-preview-21--request-service-cheat-sheet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jaredgalanis jaredgalanis merged commit 8f3897a into ember-learn:main Apr 28, 2025
6 checks passed
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.

2 participants