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

[Admin] Use Rails.application.mounted_helpers in base component #6039

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Dec 18, 2024

Rather than implementing routing proxies ourselves, we can use what Rails offers.

Fixes #6038

@mamhoff mamhoff requested a review from a team as a code owner December 18, 2024 16:07
admin/lib/solidus_admin/engine.rb Show resolved Hide resolved
@kennyadsl
Copy link
Member

I don't understand if failures are strictly related but it seems like it's the case.

@mamhoff
Copy link
Contributor Author

mamhoff commented Dec 18, 2024

Absolutely related. Will look into it tomorrow.

Rather than implementing routing proxies ourselves, we can use what
Rails offers.

Fixes solidusio#6038
Rails' `mounted_helpers` do not work when a component is initialized.
They need to be called when the component is rendered. This change moves
the rendering of tabs from initialization time to render time.
@mamhoff mamhoff force-pushed the use-mounted-helpers branch from 3c61e1a to d72496f Compare December 20, 2024 21:25
@mamhoff
Copy link
Contributor Author

mamhoff commented Dec 20, 2024

The failures were related, and fixed by the second commit in this PR.

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

Successfully merging this pull request may close these issues.

Errors running in Production mode config.eager_load = true
3 participants