generated from mitchell/rust_template
Dont provide style and FD for getting validator #24
Labels
No Label
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MarinoDev/leptos_form_tool#24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
The context being required is the big problem, as it's going to be mostly render context stuff
Since we are putting the Validation Builder back in, it might make sense to get rid of the RenderFn
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.
It looks like we can even get rid of the
fdfield in the builder, since it's passed in in the render fn. Perhaps the same with the style.