react-loading-overlay icon indicating copy to clipboard operation
react-loading-overlay copied to clipboard

React 17.x.x?

Open jmbldwn opened this issue 4 years ago • 11 comments

I'm sure I could work around this, but npm is complaining about this module while I'm trying to upgrade my project to react 17.

jmbldwn avatar Aug 10 '21 22:08 jmbldwn

I'm using npm i -S react-loading-overlay --legacy-peer-deps but npm i -S react-loading-overlay --force might work as well until React v17+ is supported unfortunately.

tylerlindell avatar Sep 23 '21 23:09 tylerlindell

Is this dead?

landsman avatar Dec 07 '21 15:12 landsman

seems so

YChalfari avatar Feb 08 '22 18:02 YChalfari

Any alternatives for this?

DavePaurillo avatar Jun 19 '22 14:06 DavePaurillo

I found one!

heres the link to the npm package.

CodeLikeAGirl29 avatar Sep 21 '22 16:09 CodeLikeAGirl29

@CodeLikeAGirl29 That's the same package as this repository, isn't it?

raxod502-plaid avatar Sep 22 '22 20:09 raxod502-plaid

I've got some problems with the children elements with react 18. fixed doing:

import React from 'react';
import LoadingOverlay, { LoadingOverlayProps } from 'react-loading-overlay';

interface ILoading extends LoadingOverlayProps {
  children?: React.ReactNode
}

const Loading: React.FC<ILoading> = (props) => (<LoadingOverlay {...props} />)

export default Loading;

and using this "Loading" component

VPPietro avatar Oct 05 '22 21:10 VPPietro

here's one that's updated for react 17. it seems to be working for me in 18 (using legacy-peer-deps) though I've not tested for @VPPietro's issue https://www.npmjs.com/package/@ronchalant/react-loading-overlay https://github.com/ronchalant/react-loading-overlay

timrobinson33 avatar Jan 20 '23 08:01 timrobinson33

I think creating another npm package is not the way to go.

uguremirmustafa avatar Apr 17 '23 09:04 uguremirmustafa