v0.13.0
Changelog (jaspr)
-
Added
Head
component to render metadata inside the documents<head>
.You can specify a title, metadata or custom children:
Head( title: 'My Title', meta: { 'description': 'My Page Description', 'custom': 'my-custom-metadata', }, children: [ link(rel: "canonical" href: "https://mysite.com/example"), ], )
Deeper or latter
Head
components will override duplicate elements:Parent(children: [ Head( title: "My Title", meta: {"description": "My Page Description"} ), Child(children: [ Head( title: "Nested Title" ), ]), ]),
will render:
<head> <title>Nested Title</title> <meta name="description" content="My Page Description"> </head>
-
Added
AsyncStatelessComponent
andAsyncBuilder
.
These are special components that are only available on the server (usingpackage:jaspr/server.dart
) and have an
asynchronous build function. -
Improved internal framework implementation of different element types.
- Added
BuildableElement
andProxyElement
as replacement forMultiChildElement
andSingleChildElement
. - Added
Element.didMount()
andElement.didUpdate()
lifecycle methods.
- Added
-
Fixed race condition where routes were skipped during static rendering.
-
Fixed infinite loading bug for async server builds.
-
Fixed hydration bug with empty or nested client components.
-
Added documentation comments.
Changelog (jaspr_router)
- The title of the browser tab will no be properly set to the
title
of the current route. - Fixed race condition where routes were skipped during static rendering.