-
Notifications
You must be signed in to change notification settings - Fork 361
Remove string refs from hints-renderer.tsx #3125
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
base: remove-string-refs
Are you sure you want to change the base?
Conversation
Just a trial of removing string refs from hints-renderer.tsx. If this looks right, I'll update other instances of string refs to use this approach. Issue: https://khanacademy.atlassian.net/browse/LEMS-369 Test plan: `pnpm jest` Storybook `/?path=/docs/renderers-hints-renderer--docs`
🗄️ Schema Change: No Changes ✅ |
🛠️ Item Splitting: No Changes ✅ |
|
Size Change: +67 B (+0.01%) Total Size: 498 kB
ℹ️ View Unchanged
|
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (933f381) and published it to npm. You Example: pnpm add @khanacademy/perseus@PR3125If you are working in Khan Academy's frontend, you can run the below command. ./dev/tools/bump_perseus_version.ts -t PR3125If you are working in Khan Academy's webapp, you can run the below command. ./dev/tools/bump_perseus_version.js -t PR3125 |
| linterContext: PerseusLinter.linterContextDefault, | ||
| }; | ||
|
|
||
| // Store refs to HintRenderer components |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestion to change to "why" versus "what"
| // Store refs to HintRenderer components | |
| // Refs needed to call focus() and getSerializedState() on individual hints |
Summary:
Just a trial of removing string refs from hints-renderer.tsx.
If this looks right, I'll update other instances of string refs to use this approach.
Issue: https://khanacademy.atlassian.net/browse/LEMS-369
Test plan:
pnpm jestStorybook
/?path=/docs/renderers-hints-renderer--docs