Skip to content

Conversation

@holoujak
Copy link
Owner

@holoujak holoujak commented Oct 9, 2025

No description provided.

@holoujak holoujak marked this pull request as ready for review October 9, 2025 21:27
@holoujak holoujak requested a review from trnila October 9, 2025 21:27
pub sorter: Signal<Sorter<F>>,
pub field: F,
#[props(optional)]
pub filter: Option<Signal<Option<String>>>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why Option<Signal?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it could be undefined, not sure if there is any other possibility to define that :-|

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why its undefined? Empty hashmap should be fine?

@holoujak holoujak force-pushed the filter-fields branch 3 times, most recently from 1e3fafe to c4babd9 Compare October 13, 2025 06:27
@holoujak holoujak requested a review from trnila October 13, 2025 06:27
@holoujak holoujak force-pushed the filter-fields branch 2 times, most recently from d6bb579 to 582ae88 Compare October 13, 2025 12:27
category: Option<Category>,
) -> bool {
if let Some(cat) = category {
if !racer.categories.iter().any(|c| c == &cat) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use contains?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

pub sorter: Signal<Sorter<F>>,
pub field: F,
#[props(optional)]
pub filter: Option<Signal<Option<String>>>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why its undefined? Empty hashmap should be fine?

th { role: "button",
span {
onclick: move |_| {
sorter.write().toggle(field);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is write() needed?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is :), at least signal is not updated without it :)

@holoujak holoujak merged commit e422b0a into master Oct 13, 2025
2 checks passed
@holoujak holoujak deleted the filter-fields branch October 13, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants