We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The default value is now null. It could be handy if especially for methods that return an array to have the init value be an empty array.
Just don't want to create an config object just for that little functionality, like:
fetchBooks: { defaultValue: [], handler() { return api.fetchBooks() } }
I think it would be better to do something convention based, like the computed name convention. Maybe:
fetchBooksList() { return api.fetchBooks() }
and a default function that interprets that like:
function getDefaultValue(vm, methodName) { var useArray = /List$/.test(methodName) return useArray ? [] : null }
And make that function replaceable.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The default value is now null. It could be handy if especially for methods that return an array to have the init value be an empty array.
Just don't want to create an config object just for that little functionality, like:
I think it would be better to do something convention based, like the computed name convention. Maybe:
and a default function that interprets that like:
And make that function replaceable.
The text was updated successfully, but these errors were encountered: