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
Write a description of your feedback here:
Assuming the student will copy/paste this final code. If they try to run it, they'll run into a error.
Proposed change:
import { SearchControl, Spinner } from "@wordpress/components"; import { useState, render } from "@wordpress/element"; import { useSelect } from "@wordpress/data"; import { store as coreDataStore } from "@wordpress/core-data"; import { decodeEntities } from "@wordpress/html-entities";
The text was updated successfully, but these errors were encountered:
Can you confirm/reproduce the issue? Yes:
As @RockyKev mentions, the following is missing from the final code snippet that's provided at the bottom of this page:
import { decodeEntities } from "@wordpress/html-entities";
This results in an error logged in the browser console (and in VS Code). See screenshots below:
What should happen next to apply the feedback?: Add the missing import to the code sample.
import
@ironnysh thanks, I've updated the final code snippet, could you please test and verify that it's not correct.
Yup, works as expected. Thanks, @jonathanbossenger.
Feedback Details
Write a description of your feedback here:
Assuming the student will copy/paste this final code. If they try to run it, they'll run into a error.
Proposed change:
Feedback Report Checklist:
The text was updated successfully, but these errors were encountered: