v0.4.0
Pre-release
Pre-release
Overhauls how components public methods work to immediately render which reduces render calls. This provides a number of benefits:
- Examples are much cleaner, no unnecessary renders
- Delegation becomes easier with
(...)
args - Phlex creator (joeldrapper) recommends passing rendering blocks to new, allows them to be stored easily
- Rails has special handling for render calls that force them into strings, unnecessary calls to render from an ERB context is bad
This patch also has performance improvements for the core classes like Protos::Theme
and Protos::Attributes
. This library is currently 30x slower than vanilla Phlex. Most of the current impact of Tailwindmerge has been mitigated, exploring making it optional in the future. Performance hit is ~2x for reading with Protos::Theme#[]
.
What's Changed
- Immediate rendering nt by @nolantait in #3
- Performance nt by @nolantait in #4
Full Changelog: v0.3.0...v0.4.0