Nilson Junior

Results 11 comments of Nilson Junior

Same thing for `$: ({ isPaused }: StoreData = $store);`

If anyone needs a version from @legendar's solution working with Typescript: ``` import React, { forwardRef, useContext, useMemo } from 'react'; import isEqual from 'lodash/isEqual'; import omit from 'lodash/omit'; import...

I noticed that this solution is still causing problems for me sometimes, like: ``` Uncaught (in promise) Error: Maximum update depth exceeded. This can happen when a component repeatedly calls...

I found something. The reason why sometimes I get an infinity loop is because of this: ``` if ( viewItem && routeElement && isEqual( viewItem.initialRouteProps, omit(routeElement.props, "children") ) ) {...

I have fixed the infinite loop by omitting the `fallback` prop by doing `omit(routeElement.props, ['children', 'fallback'])`.

> Try this > > ```ts > export function authorizationInterceptor(internalAxiosRequestConfig: InternalAxiosRequestConfig) { > internalAxiosRequestConfig.headers.set( "your-header-key-here", "yourheader-value-here"); > return internalAxiosRequestConfig; > } > ``` This worked for me, thanks!