Skip to content

7.0.0 No longer supports empty root routeΒ #80

@anton-ecom

Description

@anton-ecom

Using router for modals, where baseUrl template stays outside the x-route:

// Edit modal
<template hidden x-route="/edit/:id"  x-handler="getItem" >
    <div>
            <?=$this->load('offers/edit')?>
        </div>	
</template>

// always loads, infinite scroll
<div x-data="items()">
      <?=$this->load('offers/items')?>
</div>

Checked versions. It works in 6.0.0, but it doesn't in >7.0.0. The problem is in infinite scroll - if I use x-route='/', base route reloads on navigate() and I'm losing the current progress. Can't change the logic, too many apps providing this UX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions