Skip to content

@mfng/core@2.0.0

Compare
Choose a tag to compare
@unstubbable unstubbable released this 17 Nov 22:05
63efb2c

Features

  • Change history after having fetched data for new location (#19)
  • Replace server context with AsyncLocalStorage and client context (#20)
  • Progressively enhanced form actions (#35)
    • @mfng/core/server/rsc: Added createRscFormState function.
    • @mfng/core/server/rsc: createRscAppStream accepts a new option formState
    • @mfng/core/server/ssr: createHtmlStream now renders the form state from the RSC response, if present.
    • @mfng/core/client: Added hydrateApp function.
    • BREAKING CHANGES:
      • The Router component has a new required prop fetchRoot. This is automatically provided when using the newly introduced hydrateApp function.
      • createRscActionStream now expects the reactServerManifest in the same structure that React also expects.