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
-
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 includeDeferredRender
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.Beta Was this translation helpful? Give feedback.
All reactions