Git Product home page Git Product logo

flashy's People

Contributors

sezaru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flashy's Issues

Support for AlpineJS

It would be helpful to extend the library to be able to select either the current implementation or AlpineJS for all client-side timer processing to relieve the need for extra server interactions. I had a similar requirement in my "multi-select" component to be able to support both AlpineJS and Phoenix's JS events and it works really nicely. Also you may want to copy from that project the mix install task, which automates the required modifications of source code during installation of the library.

Unknown hook found

I followed the instructions, but when running, I get errors in the console for unknown hook found for both FlashHook and DisconnectedNotificationHook. I temporarily fixed it by creating the hooks in my own code and importing them, but I assume I should not have to?

I'm using Elixir 1.15.3, Phoenix 1.7.10 and Phoenix Liveview 0.20.1

Import as a module

The project I'm working on has some large dependencies, so I've enabled splitting in esbuild and set type="module" for app.js

When trying to import Flashy I am receiving the following error:

[FlashHook is undefined](flashy.min.js:22 Uncaught ReferenceError: FlashHook is not defined)

To replicate, just change app.js type to module. After looking through the JS, it seems that line 5 here is missing a const.

After adding the const, I am able to see the flash notifications but I am also seeing unknown hook found for "FlashHook" in the console. Any thoughts on how to fix this?

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.