Giter Club home page Giter Club logo

Comments (10)

Mythos avatar Mythos commented on September 26, 2024 1

Thank you so much, it works now!

from flasher-livewire.

yoeunes avatar yoeunes commented on September 26, 2024 1

You're welcome ^^

from flasher-livewire.

yoeunes avatar yoeunes commented on September 26, 2024

Hello @Mythos thanks for using PHPFlasher, I forget to mention it in the documentation but the v1.0 has some breaking change, now the livewire adapter is included directly inside https://packagist.org/packages/php-flasher/flasher-laravel

 composer require php-flasher/flasher-laravel
 // this syntax is deprecated
Flasher.getInstance() 

// use this instead
flasher.render(event.detail)

// or if you want to show some message from js 
flasher.info('Welcome back');
flasher.error('Oops! Something went wrong!');
flasher.warning('Are you sure you want to proceed ?');
flasher.success('Data has been saved successfully!');

// for custom adapter like toastr
var toastrFactory = flasher.create("toastr");
toastrFactory.info('Welcome back');
toastrFactory.error('Oops! Something went wrong!');
toastrFactory.warning('Are you sure you want to proceed ?');
toastrFactory.success('Data has been saved successfully!');

from flasher-livewire.

yoeunes avatar yoeunes commented on September 26, 2024

Please check my PR on your repository and tell me if it's working correctly : Mythos/books#158

from flasher-livewire.

Mythos avatar Mythos commented on September 26, 2024

Hey there, thanks a lot for providing the PR and assisting in upgrading!

Unfortunately, I'm getting these errors:
grafik

The same happens when injecting the ToastrFactory $flasher as described in the docs.

from flasher-livewire.

yoeunes avatar yoeunes commented on September 26, 2024

Hello, It's my pleasure.
Can you tell me which route you're getting this error from or how I can reproduce it, please ?

from flasher-livewire.

Mythos avatar Mythos commented on September 26, 2024

This happens for example after hitting the Update Button or changing the volume statuses in the ShowSeries component.
One is using the livewire version, the other one the normal one as it refreshes the page.

grafik

grafik

This is where you find the two actions:

grafik

If you'd like to try it, I've uploaded a little demo database: books.zip

Login credentials are:

from flasher-livewire.

yoeunes avatar yoeunes commented on September 26, 2024

Can you please verify again , I just pushed some modifications :

Screenshot from 2022-05-18 18-21-20

from flasher-livewire.

Mythos avatar Mythos commented on September 26, 2024

The former livewire() calls are working great now!

The ones without livewire() aren't, unfortunately.
This can be reproduced when you press "Update" on the left or go to the edit symbol (or via mangas/books/spy-x-family/edit in the URL) and save afterwards.
In both cases it should go tho the route in the screenshot (via redirect / reload) and display a message.

from flasher-livewire.

yoeunes avatar yoeunes commented on September 26, 2024

I see the problem clearly now, thank you for the details.
I just pushed the v1.0.4 which solve this redirection problem, can you check please ?

Mythos/books#158

from flasher-livewire.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.