Skip to content

Conversation

@zz-hh-aa
Copy link
Collaborator

This bug only shows analytics links when the nav bar first loads, but when a user navigates to another tab, the link disappears.
image

image

I can achieve our desired functionality but only by creating an infinite loop! Switching to useEffect sidesteps the circular dependency and fixes the infinite loop, but not the functionality.

Any tips?


const analyticsLink =
environment === "production" && dashboardId
environment === "production" && dashboardId // change to "development" for local testing (we don't have analytics in staging)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To test this locally, swap environment check to development here and go to a service that is marked online

@github-actions
Copy link

Pizza

Deployed a91caa8 to https://5878.planx.pizza.

Useful links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants