Skip to content

DBC22-5275: made sure the useEffect can be fired when url path changed#1175

Open
bcgov-brwang wants to merge 3 commits intomainfrom
bugfix/DBC22-5275
Open

DBC22-5275: made sure the useEffect can be fired when url path changed#1175
bcgov-brwang wants to merge 3 commits intomainfrom
bugfix/DBC22-5275

Conversation

@bcgov-brwang
Copy link
Collaborator

No description provided.

@bcgov-brwang bcgov-brwang requested a review from ray-oxd January 15, 2026 17:17
Copy link
Collaborator

@ray-oxd ray-oxd left a comment

Choose a reason for hiding this comment

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

The root cause of this bug is a race condition where the map does not finish initializing before the useEffect block is ran. Adding location.search here causes the hook to run way too often is not desired.

@bcgov-brwang
Copy link
Collaborator Author

The root cause of this bug is a race condition where the map does not finish initializing before the useEffect block is ran. Adding location.search here causes the hook to run way too often is not desired.

Update with mapRendered instead of using location.search

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