app_home_opened event fires twice when the 'messages' tab is clicked
See original GitHub issueUsing app.action to monitor app_home_openend
fires twice when a user clicks on the messages tab
app.event("app_home_opened", async context => {
console.log(context.payload.tab);
});
What type of issue is this? (place an x
in one of the [ ]
)
- bug
- enhancement (feature request)
- question
- documentation related
- testing related
- discussion
Requirements (place an x
in each of the [ ]
)
- I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
- I’ve read and agree to the Code of Conduct.
- I’ve searched for any related issues and avoided creating a duplicate issue.
Bug Report
Reproducible in:
package version: 1.5.0
node version: v10.14.1
OS version(s): OSX 10.14.6
Steps to reproduce:
app.event("app_home_opened", async context => {
console.log(context.payload.tab);
});
Expected result:
Clicking back and forth between the Home and Messages tab should appear in the console as:
home messages home messages
Actual result:
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (4 by maintainers)
Top Results From Across the Web
app_home_opened event fires twice when the 'messages' tab ...
Using app.action to monitor app_home_openend fires twice when a user clicks on the messages tab app.event("app_home_opened", async context ...
Read more >Why is my app_home_opened event sometimes triggered ...
However, sometimes (not always) the event is triggered twice and I don't know why. Interesting is that the second event can appear a...
Read more >app_home_opened event - Slack API
Use the app_home_opened event to begin a friendly onboarding flow from your app, a whimsical welcome message, or a deep-dive into a detailed...
Read more >Bolt for JavaScript - Slack Platform Developer Tools
A framework that makes Slack app development fast and straight-forward. With a single interface for Slack's Web API, Events API, ...
Read more >Slack Webhooks: A Deep Dive
Step 3: Subscribe to the app_home_opened event. Bot events. Step 4: Enable a home tab for your app by first visiting the app...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @seratch! agree that it doesn’t look like a Bolt issue 😃 I’ll test again in a fresh workspace and if the issue persists I’ll follow your advice and raise it with Slack support.
@jamesfmac Thanks for the information with us. I tried to reproduce your situation again, but I was not able to. I did the following steps. The issue didn’t occur to me.
app_home_opened
(the outcome is the same with bot events or/and workspace events)This issue doesn’t seem to be Bolt-specific. So, as a Bolt maintainer, there is nothing further I can do for you. 🙇
I’m afraid something is happening with your Slack app configuration or workspace. Even if you build the endpoint with other tools, the problem will remain. If you don’t mind, could you contact Slack’s support next year? In case your Slack app has some server-side issues, they may cooperate with related teams (sharing your app id would be helpful for them).