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

Move controlled.js helper into its own package? #200

Closed
mturley opened this issue Jan 31, 2018 · 4 comments
Closed

Move controlled.js helper into its own package? #200

mturley opened this issue Jan 31, 2018 · 4 comments
Labels

Comments

@mturley
Copy link
Collaborator

mturley commented Jan 31, 2018

Long-term, low-priority, but the controlled state helper that I wrote as part of #88 is a great candidate for a utility repo that would be useful to the React community at large (even those who aren't using patternfly-react). I was quite surprised to see that something like it didn't really exist yet.

It might be cool to document and share it, as a repo at perhaps patternfly/react-controlled-state, update patternfly-react to use it as an npm dependency, and spread it around the community. If people end up using it, there will be more visibility on the patternfly github org, and perhaps more React developers will find out about patternfly-react.

Plus, I want to use it in my own side project :) Hooray for open source.

@priley86
Copy link
Member

i think this relates to #160 - ideally long term we can get maximum visibility on pf-react related distributions in a "monorepo", however I am not opposed to exposing packages in separate repos if that becomes the consensus (and also not opposed to separate repos when those packages are cross framework/generic es6 modules). Maintaining a separate package is minimal effort if automated release tools are used and I am happy to share notes on this - however I think it may be desirable to keep related packages in a monorepo. Will revisit this in the future and thanks for posing it!

@mturley
Copy link
Collaborator Author

mturley commented Jan 31, 2018

Ah, yes! A monorepo with multiple npm packages deployed from it. Hadn't thought of that, that will probably work great. And in fact, if people wanted to look at the source for this helper they'd end up at the source for all of patternfly-react, which is great for visibility.

Relevant: #201

@mturley mturley changed the title Move controlled.js helper into its own repo? Move controlled.js helper into its own package? Jan 31, 2018
@stale
Copy link

stale bot commented Jun 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix label Jun 6, 2019
@mturley
Copy link
Collaborator Author

mturley commented Jun 6, 2019

This issue didn't age well... the controlled helper became obsolete pretty quickly when React added getDerivedStateFromProps. It should be removed and the VerticalNav should be refactored to stop using it... but, that's technical debt that might not ever be worth spending time on for pf3, and I already made a note of it in my comment here: https://github.com/patternfly/patternfly-react/blob/master/packages/patternfly-3/patternfly-react/src/common/controlled.js#L9

So I think it's safe to close this one.

@mturley mturley closed this as completed Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants