Skip to content

Commit f78ae10

Browse files
authored
feat: resubmit property for configuration lifecycle (#59)
1 parent d66cb18 commit f78ae10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/smart-app.js

+4
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ module.exports = class SmartApp {
271271

272272
case 'CONFIGURATION': {
273273
const {configurationData} = evt
274+
275+
// Inject whether or not the request was a resubmitted page
276+
configurationData.isResubmit = configurationData.pageId === configurationData.previousPageId
277+
274278
switch (configurationData.phase) {
275279
case 'INITIALIZE': {
276280
this._log.event(evt, configurationData.phase)

0 commit comments

Comments
 (0)