Skip to content

v6.0.6 - Patch Update

Choose a tag to compare

@Javiani Javiani released this 08 May 05:35
· 69 commits to main since this release

Change Log

The view() function has been updated to return the state by default, ensuring consistent behavior even when the user omits an explicit return.

Old

export const view = () => {
  const newdata = 'something'
  return { ...state, newdata }
}

New

export const view = () => {
  const newdata = 'something'
  return { newdata } // All state data will be available, plus new data.
}