Dont provide style and FD for getting validator #24

Closed
opened 2024-06-11 13:29:33 +00:00 by mitchell · 4 comments
Owner

Now you need to provide a style and form data even when you are just building the validator. When we add a context, you would also need to provide that.

This would be solved by reintroducing the Validation builder variant.

Now you need to provide a style and form data even when you are just building the validator. When we add a context, you would also need to provide that. This would be solved by reintroducing the Validation builder variant.
Author
Owner

The context being required is the big problem, as it's going to be mostly render context stuff

The context being required is the big problem, as it's going to be mostly render context stuff
Author
Owner

Since we are putting the Validation Builder back in, it might make sense to get rid of the RenderFn

Since we are putting the Validation Builder back in, it might make sense to get rid of the RenderFn
Author
Owner

The problem is, if we pass the context in addition to the builder when building components (which is necessary for dynamic select options) then the context must be present for building the form and the validator.

The other option would be to pass an optional Context, which would just be None when getting the Validator.

The problem is, if we pass the context in addition to the builder when building components (which is necessary for dynamic select options) then the context must be present for building the form and the validator. The other option would be to pass an optional Context, which would just be None when getting the Validator.
Author
Owner

It looks like we can even get rid of the fd field in the builder, since it's passed in in the render fn. Perhaps the same with the style.

It looks like we can even get rid of the `fd` field in the builder, since it's passed in in the render fn. Perhaps the same with the style.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MarinoDev/leptos_form_tool#24
No description provided.