Skip to content

Conversation

@DeviousM
Copy link

@DeviousM DeviousM commented May 4, 2021

This PR adds a support for a react-router feature that's called "basename" (https://reactrouter.com/web/api/StaticRouter/basename-string). It allows you to put an app in ie. a subdirectory, without having to rewrite the whole route structure. It's super useful if your app is designed to run under a set of different environments.

This PR is introducing a BREAKING CHANGE.
ensureReady function now accepts an object with properties. So far it accepted two parameters: routes and a pathname (which actually was not documented anywhere), now it accepts { routes, pathname, basename }.
That probably could be done differently, but there's no way to use a third parameter without having to explicitly provide a second one (it'd have to be ensureReady(routes, undefined, '/somebasename'), which IMO is a crappy way to solve that). Having an object as an accepted value here solves any future needs of adding any more options (if needed).

I did not update the README yet, though I did update all of the examples. I will update the README if this PR will be ready to merge.

@DeviousM
Copy link
Author

DeviousM commented May 4, 2021

I've noticed that this repo has become a bit stagnant (last accepted PR's and releases are from December). @nimaa77, are you potentially interested in releasing a new (IMO useful) feature? 😄

@nimaa77
Copy link
Collaborator

nimaa77 commented May 5, 2021

Hi, no worries

I'm going to check it after I finished my 9 to 5 job 😀🔥

@DeviousM
Copy link
Author

DeviousM commented May 5, 2021

Haha, that's alright, I was just checking up on you, because as I said - I didn't see any activity here for a while 😄

@nimaa77
Copy link
Collaborator

nimaa77 commented May 5, 2021

Yeah, I was lost for a while.

It's time to get things under control again 🔥

@jaredpalmer
Copy link
Owner

Glad to have you back @nimaa77

@DeviousM
Copy link
Author

Sooo, not that I want to nudge you, but were you guys able to take a look? 😄

@nimaa77
Copy link
Collaborator

nimaa77 commented May 14, 2021

sorry I completely forgot it

working on it, will test it and if everything was fine I will merge it later today

@nimaa77 nimaa77 closed this May 15, 2021
@nimaa77 nimaa77 reopened this May 15, 2021
@DeviousM
Copy link
Author

No worries, everyone has their own duties outside of open source stuff 😄

@DeviousM
Copy link
Author

DeviousM commented May 21, 2021

i-am-once-again-asking-for-your-financial-support (1)
😄

@DeviousM
Copy link
Author

DeviousM commented May 28, 2021

@nimaa77, were you able to take a look at this? I'm not saying to merge it right away as it's a breaking change kind of thing, but I think it could be pretty useful for plenty of people. I have now tested it in production based on my branch and it seems to be working just fine.

@stevengrimaldo
Copy link

I've noticed that this repo has become a bit stagnant (last accepted PR's and releases are from December). @nimaa77, are you potentially interested in releasing a new (IMO useful) feature? 😄

@jaredpalmer @nimaa77 , on that topic - as an avid razzle user looking at the future of react builds for me and my company i work for After.js has always been of interest but so has Next.js. The thing i like about After.js is the control over the router however having seen the 4.x roadmap and the last commit date may I ask what the status is of this project and or should i expect to see anything this year in terms of updates/progress?

I ask to just try and think about whats the current/next best thing to keep my websites up to date with for the code health but team onboarding and longevity.

Any response will do honestly - i love the work you've put out or else i wouldn't ask! Thanks in advance!

@nimaa77
Copy link
Collaborator

nimaa77 commented Jun 14, 2021

@stevengrimaldo expect something great and big (read it with Dutch voice a character in RDR game)
we can talk about new features, what we should work on first and thing like that on Discrod

@DeviousM I know I promised to review and merge this couple weeks ago, I was really busy
I AM REVIEWING THIS RIGHT NOW 🕐

@DeviousM
Copy link
Author

@nimaa77 - no worries! I actually initially committed a bit broken thing (I pushed my forks names by accident) 😅

@stevengrimaldo
Copy link

@stevengrimaldo expect something great and big (read it with Dutch voice a character in RDR game)
we can talk about new features, what we should work on first and thing like that on Discrod

@DeviousM I know I promised to review and merge this couple weeks ago, I was really busy
I AM REVIEWING THIS RIGHT NOW 🕐

@nimaa77 ok great! thank you, i'm in Discord.

@nimaa77 nimaa77 mentioned this pull request Nov 1, 2021
67 tasks
@stale
Copy link

stale bot commented Jan 9, 2022

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

@stale stale bot added the wontfix label Jan 9, 2022
@stale stale bot closed this Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants