Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: way to format printed output? #60

Open
Benjin opened this issue Jan 29, 2024 · 0 comments
Open

Request: way to format printed output? #60

Benjin opened this issue Jan 29, 2024 · 0 comments

Comments

@Benjin
Copy link

Benjin commented Jan 29, 2024

UWC is correctly detecting when dependencies change, but for some data types, e.g. functions or those without a useful toString(), it'd be nice to be able to supply a function to format the printed UWC output.

Proposals:

useWhatChanged([person, (x) => x.FullName], [place, null);

or

useWhatChanged([person, place], [(person) => person.FullName, null]);

In both cases, person has their print overridden to display the FullName property and place is left to its default.

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

No branches or pull requests

1 participant