Skip to content

Support for defaultProps will be removed from function components in a future major release #116

@denvermullets

Description

@denvermullets

just opening the console while using BadMagic brings this warning error

Warning: Close: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
    at Close (http://localhost:4000/js/badmagic.js:265183:11)
    at button
    at div
    at div
    at Config (http://localhost:4000/js/badmagic.js:266593:19)
    at div
    at div
    at div
    at TopBar (http://localhost:4000/js/badmagic.js:266858:19)
    at div
    at Layout (http://localhost:4000/js/badmagic.js:266712:139)
    at RouteProvider (http://localhost:4000/js/badmagic.js:266496:26)
    at Router (http://localhost:4000/js/badmagic.js:266420:90)
    at ContextProvider (http://localhost:4000/js/badmagic.js:266259:28)
    at ConfigProvider (http://localhost:4000/js/badmagic.js:266188:27)
    at BadMagic
    at Route (http://localhost:4000/js/badmagic.js:549953:29)
    at Switch (http://localhost:4000/js/badmagic.js:550155:29)
    at PrivateDevtoolsRouter
    at Route (http://localhost:4000/js/badmagic.js:549953:29)
    at Switch (http://localhost:4000/js/badmagic.js:550155:29)
    at GlobalSearchProvider (http://localhost:4000/js/badmagic.js:32377:3)
    at BannerProvider (http://localhost:4000/js/badmagic.js:197537:27)
    at ActionSheetProviderBase (http://localhost:4000/js/badmagic.js:194981:36)
    at ActionSheetProvider (http://localhost:4000/js/badmagic.js:239613:21)
    at DialogProvider (http://localhost:4000/js/badmagic.js:37219:3)
    at ModalProvider (http://localhost:4000/js/badmagic.js:37438:3)
    at Suspense
    at UserProvider (http://localhost:4000/js/badmagic.js:37343:3)
    at div
    at http://localhost:4000/js/badmagic.js:530591:25
    at GestureHandlerRootView (http://localhost:4000/js/badmagic.js:492156:3)
    at ToastProvider (http://localhost:4000/js/badmagic.js:228929:26)
    at PlatformProvider (http://localhost:4000/js/badmagic.js:234586:29)
    at WebPlatformProvider
    at PlatformProvider (http://localhost:4000/js/badmagic.js:251622:21)
    at ThemeProvider (http://localhost:4000/js/badmagic.js:236182:26)
    at QueryClientProvider (http://localhost:4000/js/badmagic.js:260374:3)
    at Router (http://localhost:4000/js/badmagic.js:549572:30)
    at BrowserRouter (http://localhost:4000/js/badmagic.js:549002:35)

there's some other errors that are probably related as well:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions