Changelog
14.6.0
Fixed vdomPath
search for Portals. Portal element now defaults to document.body same as b.init
.
Changelog
14.5.0
Added support for Portals. IBobrilNode
for portal is { tag: "@", data: domElement, children }
. In TSX it is <b.Portal element={domElement}>{children}</b.Portal>
.
useStore
hook now calls dispose on store automatically when destroying the context
Changelog
14.4.0
Fragment
now require its parameter. Should not be problem because TSX/createElement passes that parameter always nonnull. It can now return IBobrilNode
type making it more compatible to functional components.
Changelog
14.3.0
Changed zIndex of dragged container div to be 1e9, so hopefully above everything.
Changelog
14.1.0
New exported method
export function swallowPromise<T>(promise: Promise<T>): void {
promise.catch((reason) => {
console.error("Uncaught exception from swallowPromise", reason);
});
}