synchronal / pages

MIT License
9 stars 1 forks source link

Feature: Add Pages.render_hook/3 #4

Closed AndroidOatmeal closed 1 year ago

AndroidOatmeal commented 1 year ago

I needed the ability to trigger JS live view hooks using Pages. This PR is pretty simple, it just delegates to LiveViewTest.render_hook/3. Note that I changed import Phoenix.LiveViewTest to alias Phoenix.LiveViewTest. I like the explicitness, plus there was a collision between the imported Phoenix.LiveViewTest.render_hook/3 and our new Pages.Driver.LiveView.render_hook/3

AndroidOatmeal commented 1 year ago

Oops, I realized this PR accidentally had changes from the other PRs. I'll open a fresh one