fix(android): prevent error on navigation back after using page transition (#10439)

This commit is contained in:
farfromrefuge
2024-06-29 01:15:40 +02:00
committed by GitHub
parent 4abcb216da
commit 7036f12b5c
10 changed files with 59 additions and 44 deletions

View File

@@ -143,7 +143,7 @@ export function useConfig(config: keyof typeof defaultConfigs | false) {
*/
export function chainWebpack(
chainFn: (config: Config, env: IWebpackEnv) => any,
options?: { order?: number }
options?: { order?: number },
) {
webpackChains.push({
order: options?.order || 0,
@@ -160,8 +160,8 @@ export function chainWebpack(
export function mergeWebpack(
mergeFn: (
config: Partial<webpack.Configuration>,
env: IWebpackEnv
) => any | Partial<webpack.Configuration>
env: IWebpackEnv,
) => any | Partial<webpack.Configuration>,
) {
webpackMerges.push(mergeFn);
}
@@ -217,7 +217,7 @@ export function resolveChainableConfig(): Config {
* @param chainableConfig Optional chain config to use.
*/
export function resolveConfig(
chainableConfig = resolveChainableConfig()
chainableConfig = resolveChainableConfig(),
): webpack.Configuration {
if (!hasInitialized) {
throw error('resolveConfig() must be called after init()');