Feature: add admin pages for site-wide handle_info callbacks #210
+401
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What will it allow you to do that you can't do today?
These changes will make it possible to administrate the site-wide
handle_info
callbacks that will be applied to each Beacon page.Why do you need this feature and how will it benefit other users?
This feature will give users the ability to handle messages sent by
Kernel.send/2
. Commonly, this can be used to do things like put flash messages, navigate to another LiveView, work with streams, etc. in response to messages sent by the application.Are there any drawbacks to this feature?
This feature is not designed to create page-specifichandle_info
callbacks—just site-wide callbacks that are useable on all of a site’s pages. I’m happy to add a page-specifichandle_info
callbacks feature at a later point, though.Changes tohandle_info
callbacks through the admin require a recompile before they are useable. They are not immediately useable upon a refresh of a Beacon page the way that an update to a Beacon page is immediately viewable.