Make __vanish__ part of the public API #583
bradgessler
started this conversation in
Ideas
Replies: 1 comment
-
|
I think this makes sense. 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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 includeDeferredRenderto 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.Beta Was this translation helpful? Give feedback.
All reactions