ore-ui
ore-ui copied to clipboard
💎 Building blocks to construct game UIs using web tech.
The error annotation for the twoslash code blocks on the `useFacetState` and `useFacetCallback` produce a visual error on the markdown in the documentation, warning of an implicit any type. Whether...
This PR updates the Facet packages to be based on React 18 (`18.2.0` in specific), finally adding support to concurrent mode. We are marking this PR for review, but will...
Implements RFC https://github.com/Mojang/ore-ui/issues/65, with some caveats. Notes: - [x] Deduplication (calling the driver only once for the same path) is missing - [ ] `onError` callback is not supported (currently...
## Motivation Shared facets are defined statically at a global level using the `sharedFacet` function as a combination of a `name` and a `type`. As an example from our documentation:...
This is a proposal that extends our concept of shared facets to also include an option with "setters". This is to allow us extending engine implementations to support a "shared...
Today the `` component is internally using the array index as a `key` when rendering out each item. This causes a similar problem to what is discussed in the [official...
As of https://github.com/Mojang/ore-ui/pull/34, when `DeferredMountWithCallback` is used, all deferred rendering is paused until that callback is invoked. To avoid blocking all rendering, we might want to place the callback in...
There is room to improve a bit further our strategy regarding equality checks. Right now we have a "default equality check" that is applied everywhere, but this default implementation adds...
We could investigate using tools such as https://github.com/changesets/changesets We could also check if it is worth using something like https://turborepo.org/. They also have a fantastic list of complementary tools we...
# Overview Our nullish coalescing operators are compiled into ternaries that perform unnecessary operations. We got a performance report which indicates that writing explicit ternaries could yield a performance increase....