Closed bknoles closed 3 years ago
Resolves #51
The code follows the design of the Laravel adapter pretty closely. The basic idea is to filter out any "lazy" props from initial page loads.
There's a new InertiaRails::Lazy class that acts like a callable prop.
InertiaRails::Lazy
I also took the opportunity to refactor the code that decides which props get filtered out within the renderer.
Resolves #51
The code follows the design of the Laravel adapter pretty closely. The basic idea is to filter out any "lazy" props from initial page loads.
There's a new
InertiaRails::Lazy
class that acts like a callable prop.I also took the opportunity to refactor the code that decides which props get filtered out within the renderer.