Commit graph

31 commits

Author SHA1 Message Date
Apollinaire
1e7ae073a9 Merge branch 'master' into devel 2018-12-19 16:10:54 +01:00
Sacha Greif
d51ae7591b
Merge pull request #2065 from OrigenStudio/feature/router-hook-props
Add async hook to RouterHook and provide props as argument
2018-12-16 22:52:00 +09:00
SachaG
5e06e47d6b Make callback hook names case-insensitive; port forms callbacks to new single argument syntax 2018-12-15 18:25:15 +09:00
ochicf
bb46f04541 keep using Meteor.defer on the server 2018-12-12 17:17:01 +01:00
SachaG
2ca34ba335 Various small fixes 2018-10-14 18:10:32 +09:00
ochicf
f5ca3c1284 runCallbacksAsync can be run on client, return promise of results 2018-09-12 13:15:52 +02:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
Matt Black
d486b49ac3 Fix async callbacks called with no arguments 2018-06-22 23:41:20 -04:00
SachaG
51acfa7ffc Migrate new callbacks to new single argument API 2018-06-15 10:18:20 +09:00
ochicf
3d190b5394 revert last commits
For the moment only fix the await between callbacks issue (as discussed [here](https://github.com/VulcanJS/Vulcan/issues/1949)), so reverts the following commits:

1078943c1a
b2c8c52bc6
2534dde6d2
87e3721f34
83022a9e6d
22d7f80ab4
3f780f8511
822f73a0b6
2018-05-19 12:27:03 +02:00
ochicf
87e3721f34 return results on runCallbacksAsync, update its documentation 2018-05-14 20:28:47 +02:00
ochicf
83022a9e6d update documentation 2018-05-14 20:26:40 +02:00
ochicf
22d7f80ab4 check for async context start after callback is run 2018-05-14 20:26:19 +02:00
ochicf
3f780f8511 skip returned promises by callbacks added to sync hooks 2018-05-14 20:25:46 +02:00
ochicf
822f73a0b6 wrap item in promise for async hooks 2018-05-14 20:24:12 +02:00
ochicf
0b701a736b await between callbacks 2018-05-10 13:13:49 +02:00
Justin Reynolds
75b6ece0a4 Fix linting 2018-01-25 15:03:03 -06:00
Luca Hagel
bdc05e1bc1 Add indentation groups & color escape sequences to cb & resolver logs 2018-01-06 13:40:40 +01:00
SachaG
b7404f88ae Fix segment identify 2017-12-27 09:55:06 +09:00
SachaG
104b630448 Create new events-internal package to hold internal Mongo event tracking code 2017-12-17 20:59:26 +09:00
Sacha Greif
50943f01de First pass at /callbacks dashboard 2017-10-21 15:58:02 +09:00
Sacha Greif
d48c84b749 Small fixes 2017-10-18 20:06:31 +09:00
SachaG
d8159d3bde Adding new debug mode 2017-09-14 19:47:35 +02:00
SachaG
2d0c422607 Add 'user.postlogin' hook to queue actions until after a user is logged in 2017-08-21 15:35:19 +09:00
SachaG
3974471e67 Use apollo-errors package for form errors 2017-07-07 10:21:15 +09:00
SachaG
ebdaa61fea add break=true option to errors to interrupt callback cycles 2017-07-07 09:50:05 +09:00
SachaG
262dca5d3b Add addToSubmitForm() function to form context that lets components add callbacks on form submission; make runCallbacks and runCallbacksAsync take arrays of functions as first arguments. 2017-05-30 09:49:38 +09:00
SachaG
ea4fb84d06 Improve callback handling: sync callbacks will show a warning if a value is not returned but still go on 2017-05-23 09:46:34 +09:00
SachaG
5f7863c85e do not throw errors in sync callbacks; fix click tracking callback 2017-05-14 10:42:19 +09:00
SachaG
193b0a2895 Use function foo() {} syntax for all callback functions so they have names 2017-04-14 11:37:30 +09:00
SachaG
72be56a590 renaming nova-xyz directories to vulcan-xyz 2017-03-24 10:19:24 +09:00
Renamed from packages/nova-lib/lib/modules/callbacks.js (Browse further)