brisa-build / brisa

The Web Platform Framework.
https://brisa.build
MIT License
452 stars 12 forks source link

fix(playground): fix back navigation on playground #592

Closed aralroca closed 1 month ago

aralroca commented 1 month ago

Fixes https://github.com/brisa-build/brisa/issues/591

In the playground, in order not to break the Monaco editor, we are avoiding the SPA navigation once we are inside the playground. In doing so, when navigating to another page it works with the native navigation, and everything ok, but instead, if you press the Chrome back button, it tries to load the old SPA page and it doesn't work. This PR fix this.

pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

brisa-adapter-vercel

``` bun add https://pkg.pr.new/brisa-build/brisa/brisa-adapter-vercel@592 ```

brisa-pandacss

``` bun add https://pkg.pr.new/brisa-build/brisa/brisa-pandacss@592 ```

brisa-tailwindcss

``` bun add https://pkg.pr.new/brisa-build/brisa/brisa-tailwindcss@592 ```

brisa

``` bun add https://pkg.pr.new/brisa-build/brisa@592 ```

create-brisa

``` bun add https://pkg.pr.new/brisa-build/brisa/create-brisa@592 ```

www

``` bun add https://pkg.pr.new/brisa-build/brisa/www@592 ```

commit: 9778a5c