This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mobx version | |
// OrdersStore.js | |
// ... | |
performOrderAction(order) { | |
const result = await performAPIFetch(/* ... */); | |
order.done = result.done; | |
return true; | |
} | |
// redux (saga) version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Version A | |
module.exports = function(context) { | |
var urls = []; | |
if (urls.length === 0) { | |
context.done(); | |
} | |
} | |
// Version B | |
module.exports = function(context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-07-27T13:47:09.674 Node.js HTTP trigger function processed a request. RequestUri=https://cold-start-execute-30.azurewebsites.net/api/HttpTriggerNodeJS1 | |
2016-07-27T13:47:09.706 Function completed (Success, Id=ad00c168-479b-4b01-827c-3a3be4d235bf) | |
2016-07-27T13:48:43.115 Function started (Id=641d1ed7-581b-4827-9d16-66a9c0466aff) | |
2016-07-27T13:48:43.131 Node.js HTTP trigger function processed a request. RequestUri=https://cold-start-execute-30.azurewebsites.net/api/HttpTriggerNodeJS1 | |
2016-07-27T13:48:43.131 Function completed (Success, Id=641d1ed7-581b-4827-9d16-66a9c0466aff) | |
2016-07-27T13:48:48.352 Function started (Id=030eba6c-77a9-4343-af63-2a04792d2a99) | |
2016-07-27T13:48:48.352 Node.js HTTP trigger function processed a request. RequestUri=https://cold-start-execute-30.azurewebsites.net/api/HttpTriggerNodeJS1 | |
2016-07-27T13:48:48.352 Function completed (Success, Id=030eba6c-77a9-4343-af63-2a04792d2a99) | |
2016-07-27T13:48:49.512 Function started (Id=a292688d-bade-4fd2-8490-e9ee8d5721b6) | |
2016-07-27T13:48:49.51 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(context, req) { | |
context.log('Node.js HTTP trigger function processed a request. RequestUri=%s', req.originalUrl); | |
context.res = { | |
// status: 200, /* Defaults to 200 */ | |
body: true | |
}; | |
context.done(); | |
}; |