Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 551 Bytes

0.44.md

File metadata and controls

19 lines (12 loc) · 551 Bytes

Upgrade 0.43 to 0.44

Change startupjs and all @startupjs/* dependencies in your package.json to ^0.44.

RELEASE NOTES

No breaking changes

Fix multiple useValue hook initialization at each rendering. Now the hook works like useState in react.

const [value, $value] = useValue(Math.random())

return pug`
  Button(onPress=() => $value.set(value + 1)) Increment
`

In this example, the value did not increase when the button was clicked because the next initialization was performed with a new Math.random() value.