Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.4.1-HMR for review #5

Closed
wants to merge 7 commits into from
Closed

v1.4.1-HMR for review #5

wants to merge 7 commits into from

Conversation

KyosukeUryu
Copy link

Fork & patch of Phoenix.LiveReload v1.4.1 for internal use.

We won't merge this!! Just for review.
1.4.1対応してv1.4.0 をbaseとしたPRになります、手元環境ではこちらでHMR挙動が維持されていることを確認しました

Comment on lines +58 to +66
for {topic, patterns} <- notify_patterns do
if matches_any_pattern?(path, patterns) do
Phoenix.PubSub.broadcast(
socket.pubsub_server,
to_string(topic),
{:phoenix_live_reload, topic, path}
)
end
end
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

基本的には:notifyオプションの追加でnotify_patternsからPubSubで他のappにも通知できるようになったのが主な修正のようでした。

PR見た感じ:phoenix_live_viewで利用できるように拡張したらしい
phoenixframework#131

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:naruhodo:

* `:debounce` - an integer in milliseconds to wait before sending
live reload events to the browser. Defaults to `0`.

* `:iframe_attrs` - attrs to be given to the iframe injected by
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

間違って前回のbranchで戻してしまってたので再度削除

@KyosukeUryu
Copy link
Author

確認完了、こちらのPRはcloseしてsiiibo-appの依存先をv1.4.1-HMRに変更します

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants