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: imports #1050

Merged
merged 2 commits into from
Jan 28, 2025
Merged

fix: imports #1050

merged 2 commits into from
Jan 28, 2025

Conversation

kellyjosephprice
Copy link
Collaborator

PR App Fix RM-11562

🧰 Changes

Fixes user variables in the mdx-renderer.

The mdx-renderer passes in { imports: { React } } as they have to provide their own compiled version. lib/run was not properly merging that with it's own imports, and that was causing user to be undefined!

🧬 QA & Testing

@kellyjosephprice kellyjosephprice marked this pull request as ready for review January 28, 2025 00:12

render(<Component />);

expect(screen.getByText('TEST')).toBeInTheDocument();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is it defined that {user.test} returns 'TEST'?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/readmeio/markdown/blob/next/utils/user.ts

Hmm, I'm realizing now, that this doesn't totally match the old behavior of providing a dropdown though: https://github.com/readmeio/variable/blob/main/index.jsx#L116-L131

@kellyjosephprice kellyjosephprice merged commit f4aca39 into next Jan 28, 2025
14 checks passed
@kellyjosephprice kellyjosephprice deleted the feat/dont-use-proxy branch January 28, 2025 00:38
rafegoldberg pushed a commit that referenced this pull request Jan 28, 2025
## Version 7.14.0
### ✨ New & Improved

* trigger build ([300e64a](300e64a))

### 🛠 Fixes & Updates

* imports ([#1050](#1050)) ([f4aca39](f4aca39))
* make cards responsive ([#1049](#1049)) ([6a96091](6a96091))

<!--SKIP CI-->
@rafegoldberg
Copy link
Contributor

This PR was released!

🚀 Changes included in v7.14.0

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.

3 participants