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

Make __vanish__ part of the public API #698

Open
joeldrapper opened this issue Mar 27, 2024 Discussed in #583 · 0 comments
Open

Make __vanish__ part of the public API #698

joeldrapper opened this issue Mar 27, 2024 Discussed in #583 · 0 comments
Labels
good first issue Good for newcomers

Comments

@joeldrapper
Copy link
Collaborator

Discussed in https://github.com/orgs/phlex-ruby/discussions/583

Originally posted by bradgessler July 21, 2023
Sometimes a component needs to be rendered, but the output is not needed, like in this controller at https://github.com/rubymonolith/classic/blob/47d9fee6e17f5f49d7dfbefee4b194b6eddcff8d/app/controllers/posts_controller.rb#L71-L73 so Superform can permit params based on the contents of a form.

Could this __vanish__ API be made available for such calls? I see I can include DeferredRender to enable that, but I only need this for permitting params. When I'm actually rendering the form in a view I don't need to defer rendering.

@joeldrapper joeldrapper added the good first issue Good for newcomers label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Development

No branches or pull requests

1 participant