Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated below things including UNSAFE_componentWillMount warning #216

Closed
wants to merge 4 commits into from
Closed

Updated below things including UNSAFE_componentWillMount warning #216

wants to merge 4 commits into from

Conversation

velusgautam
Copy link

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

Velu Gautam and others added 3 commits November 4, 2019 14:24
1. flowconfig Updated for Travis CICD
2. UNSAFE_componentWillMount for React Upgrade
3. Added package-lock.json
@velusgautam
Copy link
Author

@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

@fgiarritiello
Copy link

Can we please merge this?

@velusgautam velusgautam changed the title Updated below things Updated below things including UNSAFE_componentWillMount warning Nov 21, 2019
@kopax
Copy link

kopax commented Dec 6, 2019

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

@masad-frost
Copy link

@kopax use loadable/components, or fork this library

@kopax
Copy link

kopax commented Dec 16, 2019

@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 pushed a commit to yeutech-lab/react-loadable that referenced this pull request Dec 16, 2019
kopax pushed a commit to yeutech-lab/react-loadable that referenced this pull request Dec 16, 2019
## [5.5.1](v5.5.0...v5.5.1) (2019-12-16)

### Bug Fixes

* **ci:** running npm run flow and allow failure ([97127ac](97127ac))
* **react-loadable:** Upgrade to babel 7, fix warnings (see jamiebuilds/react-loadable#216) ([88564a6](88564a6))
@lovewinders
Copy link

lovewinders commented Dec 17, 2019

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

@shehi
Copy link

shehi commented Jan 10, 2020

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

@velusgautam
Copy link
Author

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

@KorySchneider
Copy link

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

@velusgautam
Copy link
Author

React Loadable implementation with React 17.0.1. 🎉

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

@shehi
Copy link

shehi commented Nov 16, 2020

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.

@velusgautam
Copy link
Author

velusgautam commented Nov 17, 2020

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

@shehi
Copy link

shehi commented Nov 17, 2020

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!

@LukeXF
Copy link

LukeXF commented Nov 27, 2020

Please can we get an update on this?

@slorber
Copy link

slorber commented Feb 12, 2021

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

#213 (comment)

Repository owner deleted a comment from ygs-code Sep 6, 2022
@velusgautam velusgautam closed this by deleting the head repository Apr 12, 2023
@fangyinghua
Copy link

fangyinghua commented Apr 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.