All threads / Stimulus Reflex Lifecycle events

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Stimulus Reflex Lifecycle events

Joseph A. asked in Gems / Libraries

could check this gist? it's an app wich use Stimulus Reflex. It's about a pagination reflex, the thing is i need to hide the spinner when afterReflex() callback is executed, but sometimes it doesn't works.

https://gist.github.com/matedemorphy/94c6ad13b6aebd89862b5b14120c98df

I have this line in config/initializers/session_store.rb

Rails.application.config.session_store :cookie_store, key: _my_app, domain: lvh.me, but then in development.rb

config.session_store :cache_store config.cache_store = :file_store, Rails.root.join(tmp, cache).to_s, { size: 320.megabytes }

it could some conflict there?

solved by adding data-id

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 38,558+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.