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

Suggestion: allow definition of final selector for component use #6

Open
jmbldwn opened this issue Jul 2, 2020 · 0 comments
Open

Comments

@jmbldwn
Copy link

jmbldwn commented Jul 2, 2020

Currently the selector returns null to indicate data needs to be acquired.

But a component usually doesn't care. If the data is an array, it would be best if the selector returned [] instead of null, so components don't need to null-check.

This could be a way of indicating the type of the result (array, object, number, string....) that would present an empty value for each one ([]. {}. NaN, ''), or a function supplied to the constructor that specifies the null check applied to the selector before output.

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