fix(ui): stale locale value from useLocale (#9582)
### What? Fixes issue with stale locale from searchParams ### Why? Bad use of useEffect/useState inside our useSearchParams provider. ### How? Memoize the locale instead of relying on the useEffect which was causing unnecessary renders with stale values.
This commit is contained in:
@@ -112,7 +112,7 @@ export const generateReleaseNotes = async (args: Args = {}): Promise<ChangelogRe
|
||||
|
||||
return sections
|
||||
},
|
||||
{} as Record<Sections | 'breaking', GitCommit[]>,
|
||||
{} as Record<'breaking' | Sections, GitCommit[]>,
|
||||
)
|
||||
|
||||
// Sort commits by scope, unscoped first
|
||||
|
||||
Reference in New Issue
Block a user