[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters

WordPress Trac noreply at wordpress.org
Wed Sep 13 13:41:21 UTC 2017


#21170: JavaScript actions and filters
-----------------------------+------------------------------
 Reporter:  koopersmith      |       Owner:  adamsilverstein
     Type:  feature request  |      Status:  reopened
 Priority:  normal           |   Milestone:  4.9
Component:  General          |     Version:  3.4
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  javascript
-----------------------------+------------------------------

Comment (by adamsilverstein):

 @flixos90 Thanks for bringing up async support. We discussed this
 [https://github.com/WordPress/packages/pull/13#issuecomment-319958109
 briefly on the PR] and decided it was out of scope for 1.0.0 of wp.hooks.
 I would love to explore in a future version. One possible approach to
 explore for async with the current implementation for developers is to run
 a hook before the async action, and run another once the async action
 completed. Another option would be to return a promise from the filter.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21170#comment:152>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list