Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editor: improves switch types cache handling #7952

Merged
merged 1 commit into from
Jul 8, 2024
Merged

editor: improves switch types cache handling #7952

merged 1 commit into from
Jul 8, 2024

Conversation

jacomyal
Copy link
Contributor

@jacomyal jacomyal commented Jul 4, 2024

This commit fixes #7946.

Details:

  • Adds a ? to handle case where switch types have not been loaded yet in SwitchList.tsx
  • Adds a very simple cache to useSwitchTypes to avoid reloading switch types any time a new component mounts with that hook

This commit fixes #7946.

Details:
- Adds a `?` to handle case where switch types have not been loaded yet
  in SwitchList.tsx
- Adds a very simple cache to useSwitchTypes to avoid reloading switch
  types any time a new component mounts with that hook
@jacomyal jacomyal requested a review from a team as a code owner July 4, 2024 15:03
@jacomyal jacomyal assigned jacomyal and Math-R and unassigned jacomyal Jul 4, 2024
@SharglutDev SharglutDev requested review from Yohh and Math-R July 5, 2024 06:48
Copy link
Contributor

@Yohh Yohh left a comment

Choose a reason for hiding this comment

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

LGTM tested

Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

LGTM, tested ✅

@clarani clarani added this pull request to the merge queue Jul 8, 2024
Merged via the queue into dev with commit 4dfa713 Jul 8, 2024
17 checks passed
@clarani clarani deleted the ajy/7946 branch July 8, 2024 13:03
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.

front: editor: enable to select switch for speed restriction by routes
4 participants