Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 901 Bytes

File metadata and controls

32 lines (22 loc) · 901 Bytes

Upgrading from 1.0-beta to 1.0

Breaking change: @blaze no longer enables folding or memoization by default

In Blaze 1.0-beta, @blaze implicitly enabled both folding and memoization:

@blaze // Before: folding + memoization

In Blaze 1.0, @blaze enables function compilation only:

@blaze // Now: function compilation only

To enable folding or memoization, you now need to opt in explicitly:

@blaze(fold: true, memo: true)

or using the Blaze::optimize() in your service provider:

Blaze::optimize()
    ->in(resource_path('views/components'))
    ->in(resource_path('views/components/ui'), fold: true)
    ->in(resource_path('views/components/icons'), memo: true);

Only use these strategies if you understand their limitations. To learn more, read the Optimization strategies section in the README.