Skip to content

Commit

Permalink
feat: resubmit property for configuration lifecycle (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
erodewald committed Apr 13, 2019
1 parent d66cb18 commit f78ae10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/smart-app.js
Expand Up @@ -271,6 +271,10 @@ module.exports = class SmartApp {

case 'CONFIGURATION': {
const {configurationData} = evt

// Inject whether or not the request was a resubmitted page
configurationData.isResubmit = configurationData.pageId === configurationData.previousPageId

switch (configurationData.phase) {
case 'INITIALIZE': {
this._log.event(evt, configurationData.phase)
Expand Down

0 comments on commit f78ae10

Please sign in to comment.