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
When moving between routes, I receive Uncaught TypeError: value is not a function if the other component doesn't have the onupdate lifecycle hook:
Uncaught TypeError: value is not a function
onupdate
app({ state: {}, view: { '/dashboard': (state, actions) => h('div', {onupdate: e => console.log('dashboard updated')}, [ h('h1', null, 'Dashboard'), h('a', {onclick: () => actions.router.go('/billing')}, 'Go to Billing') ]), '/billing': (state, actions) => h('div', null, [ h('h1', null, 'Billing'), h('a', {onclick: () => actions.router.go('/dashboard')}, 'Go to Dashboard') ]), }, actions: {}, root: el, plugins: [Router] })
To reproduce: Load /dashboard and click link "Go to Billing"
/dashboard
Using 0.9.1
The text was updated successfully, but these errors were encountered:
@ahallock Reproduced. I'll patch this soon and publish a new release. Thanks for letting us know! 👍
Sorry, something went wrong.
20eee44
Don't call onupdate handler when it is undefined.
d7c9a38
Rel: jorgebucaran/hyperapp/issues/215
946425a
34be088
Don't crash if onupdate is not defined. Fix #215.
b8d47a8
No branches or pull requests
When moving between routes, I receive
Uncaught TypeError: value is not a function
if the other component doesn't have theonupdate
lifecycle hook:To reproduce: Load
/dashboard
and click link "Go to Billing"Using 0.9.1
The text was updated successfully, but these errors were encountered: