-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Sandbox Search #38
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
Sandbox Search #38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when are u gonna start using RFR instead of React Router? ;) ...u shouldn't have to think about routes, especially in your connected components when u have the great power of Redux available to you.
What do you need these ive been using RFR for almost a year and never need more than It's been something in the back of my head I've wanted to visit for RFR to insure all bases are covered. |
I guess the question mark means u require the URL in the addressbar to have a question mark directly after the path segment. But do u really need that? I guess the question is, do you really have the business need of not matching if the user visits the URL without a query string? ...As far the asterisk, I still cant figure out what that will do with a dynamic path segment. I get that in a static segment, it lets you match multiple static segments. But in a dynamic one, ur already matching all paths at that segment. Does the asterisk apply to the next path segment (or all next path segments)? if that's the case I'd expect it to be ..by the way, for both these patterns, there's an idiomatic way to accomplish it in RFR. |
also, by the way this: const SignIn = Loadable({
loader: () => import('./SignIn'),
LoadingComponent: Loading,
});
const NotFound = Loadable({
loader: () => import('./NotFound'),
LoadingComponent: Loading,
});
const Sandbox = Loadable({
loader: () => import('./Sandbox'),
LoadingComponent: Loading,
});
const Profile = Loadable({
loader: () => import('./Profile'),
LoadingComponent: Loading,
});
const CLI = Loadable({
loader: () => import('./CLI'),
LoadingComponent: Loading,
});
const GitHub = Loadable({
loader: () => import('./GitHub'),
LoadingComponent: Loading,
}); u can accomplish like this in react-universal-component using webpack-flush-chunks which u might have seen in today's articles or my previous articles: import universal from 'react-universal-component'
const UniversalComponent = universal(props => import(`./${props.page}`)) Loadable doesn't support dynamic requires. In fact webpack only supports them client-side. I'm working on finishing up my PR with the webpack team to support true universal dynamic requires: Once I complete the tasks they gave me and they merge it, the code-splitting + SSR dream is complete. No more hashes of a million components--just one HoC that responds to props like above. Code-splitting everywhere frictionlessly, and without sacrificing SSR/SEO (and complete SEO will be good for u business--u have lots of code, that's text search engines should be picking up) Today, u can do above in client-only SPAs, which I assume codesandbox is when it comes to this. If u want full SSR + splitting we can do it today if u want too. I use a fork of Webpack that uses my above PR so i can get full universal splitting. |
I use
The main reason I haven't converted to |
Yes, it's here! I'm waiting for pricing functionality before releasing this, I want to give the users the option to make their sandboxes private.