react-loadable icon indicating copy to clipboard operation
react-loadable copied to clipboard

Updated below things including UNSAFE_componentWillMount warning

Open velusgautam opened this issue 5 years ago • 15 comments

  1. flowconfig Updated for Travis CICD
  2. UNSAFE_componentWillMount for React Upgrade
  3. Added package-lock.json

velusgautam avatar Nov 04 '19 13:11 velusgautam

@jamiebuilds Can you please verify this PR I update the yarn.lock file since it was throwing error in travis builds Changed travis.yml to build only for node 8 and 10 update .flowconfig path to ignore chalk

velusgautam avatar Nov 04 '19 13:11 velusgautam

Can we please merge this?

fgiarritiello avatar Nov 21 '19 04:11 fgiarritiello

Hello, this is really needed here for many people. Is this still maintained ?

kopax avatar Dec 06 '19 15:12 kopax

@kopax use loadable/components, or fork this library

masad-frost avatar Dec 07 '19 00:12 masad-frost

@masad-frost those libraries are different, they do not provide the same features.

Did anybody fork and release on npm the fix?

I am in the process to do so at https://github.com/yeutech-lab/react-loadable but I still have this error when runnin npm run flow :

dka@dka:[~/workspace/github.com/yeutech-lab/react-loadable (master)]: npm run flow

> @yeutech-lab/[email protected] flow /home/dka/workspace/github.com/yeutech-lab/react-loadable
> flow

node_modules/@webassemblyjs/ieee754/src/index.js:37
 37: export function decodeF32(bytes: Array<Byte>): number {
                                            ^^^^ identifier `Byte`. Could not resolve name

I have never used flow before, I don't know what this is. Can anyone tell me?

Anyhow, this is the fork published on npm https://www.npmjs.com/package/@yeutech-lab/react-loadable

kopax avatar Dec 16 '19 11:12 kopax

react-loadable Loadable.Capture report is not support typescript ssr?

// App.tsx

import React from 'react';
import {Route, Redirect, withRouter, Switch} from 'react-router-dom';
import Loadable from 'react-loadable';
import Loading from 'app/components/Loading';

const LoadableTab=Loadable({
  loader: () => import(/* webpackChunkName: 'Tab' */ './A'),
// typescript is not auto insert webpack/modules
//   webpack: () => [require.resolveWeak('./A')],
//   modules: ['./A'],
  loading:Loading
});
const LoadableUser = Loadable({
  loader: () => import(/* webpackChunkName: 'User' */ './B'),
//   webpack: () => [require.resolveWeak('./B')],
//   modules: ['./B'],
  loading:Loading
});

class App extends React.Component{
	render(){
		return(
			<React.Fragment>
				<Switch>
					<Route path="/login"  component={LoadableTab}/>
					<Route path="/join"  component={LoadableUser}/>
					<Route path="/"  component={LoadableUser}/>
				</Switch>
				<LoadableUser />
			</React.Fragment>
			)
	}
};

export default App;

// index.js

import App from "App.tsx";
...
const rootString = renderToString(
        <Loadable.Capture
            report={moduleName => {
                console.log('============If App is tsx/ts, Not executed here============>>>>>>>', moduleName)
                return modules.push(moduleName)
            }}
        >
            <Provider store={store}>
                <StaticRouter location={ctx.req.url} context={context}>
                    <App/>
                </StaticRouter>
            </Provider>
        </Loadable.Capture>
    );

so this moduleName is Empty array

lovewinders avatar Dec 17 '19 05:12 lovewinders

Now please let's have a merge & release :)

shehi avatar Jan 10 '20 15:01 shehi

@kopax flow issues are fixed in this pull request. You can refer the changed files

velusgautam avatar Jan 10 '20 18:01 velusgautam

Would love for this to get merged, using fork from @kopax in the meantime

KorySchneider avatar Feb 04 '20 22:02 KorySchneider

React Loadable implementation with React 17.0.1. 🎉

https://www.npmjs.com/package/react-loadable-hooks

velusgautam avatar Nov 16 '20 08:11 velusgautam

React Loadable implementation with React 17.0.1. 🎉

https://www.npmjs.com/package/react-loadable-hooks

It looks like you "forked" this repo (since a lot of its pieces are from this one), but at the same time stripped the git history of it, making zero initial commit. Why not do proper forking, at the same time respecting the previous work done here?!

And you are violating the following clause of MIT license (as you removed the LICENSE file from your repo):

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

shehi avatar Nov 16 '20 09:11 shehi

React Loadable implementation with React 17.0.1. 🎉 https://www.npmjs.com/package/react-loadable-hooks

It looks like you "forked" this repo (since a lot of its pieces are from this one), but at the same time stripped the git history of it, making zero initial commit. Why not do proper forking, at the same time respecting the previous work done here?!

And you are violating the following clause of MIT license (as you removed the LICENSE file from your repo):

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. @shehi Thanks for pointing. Added license and history.

And I already have a forked version and created this Pull Request. And the other has more changes and cant be merged to this, that's why I added that to a new repo

velusgautam avatar Nov 17 '20 08:11 velusgautam

React Loadable implementation with React 17.0.1. 🎉 https://www.npmjs.com/package/react-loadable-hooks

It looks like you "forked" this repo (since a lot of its pieces are from this one), but at the same time stripped the git history of it, making zero initial commit. Why not do proper forking, at the same time respecting the previous work done here?! And you are violating the following clause of MIT license (as you removed the LICENSE file from your repo):

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. @shehi Thanks for pointing. Added license and history.

And I already have a forked version and created this Pull Request. And the other has more changes and cant be merged to this, that's why I added that to a new repo

Then please apply your changes to existing latest version of this package? I for sure won't be using a new package, when its author decided not to bother with proper PR and conflict management. As I said, making clean slate repo with no git history whatsoever is just blunt plagiarism in my book. This will be my last comment on this topic. Have a nice day!

shehi avatar Nov 17 '20 10:11 shehi

Please can we get an update on this?

LukeXF avatar Nov 27 '20 11:11 LukeXF

For anyone interested, here's my solution to get rid of the warning (React 16 + 17) and still get this working (client+SSR).

https://github.com/jamiebuilds/react-loadable/pull/213#issuecomment-778246548

slorber avatar Feb 12 '21 15:02 slorber

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

fangyinghua avatar Apr 12 '23 09:04 fangyinghua