mode Smart modern milk box could solve the problem of porch pirates By www.treehugger.com Published On :: Thu, 05 Dec 2019 12:05:29 -0500 The Danby Parcel Guard reduces the waste of stolen packages and multiple deliveries. Full Article Design
mode Bow Ties Made of Recycled Rubbish for the Modern Man (Photos) By www.treehugger.com Published On :: Fri, 27 Jan 2012 09:01:15 -0500 This man has a unique recycled bow tie to match every occasion. Full Article Living
mode Meet Coleen, an e-bike modelled after a classic Jean Prouvé design By www.treehugger.com Published On :: Fri, 11 Jan 2019 08:36:31 -0500 C'est magnifique. Full Article Transportation
mode Fans Get a Peek at the First Dream Remodel for HGTV Dream Home 2016, Located in Merritt Island, Florida - HGTV Dream Home 90-second Tour By feedproxy.google.com Published On :: 02 Dec 2015 11:45:00 EST HGTV Dream Home 90-second Tour Full Article Construction Building Entertainment Household Consumer Cosmetics Television Home Improvement Broadcast Feed Announcements MultiVu Video
mode Small overlap crash protection, front crash prevention key to 2016 awards; 48 models earn TOP SAFETY PICK+ award, 13 earn TOP SAFETY PICK - 2016 IIHS TOP SAFETY PICKS By feedproxy.google.com Published On :: 10 Dec 2015 11:27:00 EST 2016 IIHS TOP SAFETY PICKS Full Article Trucking and Road Transportation Travel Insurance Broadcast Feed Announcements MultiVu Video
mode 2017 Hyundai Ioniq Model Lineup Makes U.S. Debut At New York International Auto Show - 2017 Hyundai IONIQ Hybrid Dynamic B-roll By feedproxy.google.com Published On :: 24 Mar 2016 10:00:00 EDT 2017 Hyundai IONIQ Hybrid Dynamic B-roll Full Article Auto Transportation Trucking Railroad New Products Services Trade show news Broadcast Feed Announcements MultiVu Video
mode Stocks making the biggest moves midday: Tesla, Facebook, Dunkin' Brands, Boeing, Moderna & more By www.cnbc.com Published On :: Thu, 30 Apr 2020 20:04:37 GMT Check out the companies making headlines in midday trading. Full Article
mode She fled coronavirus-stricken Brooklyn to live in Oklahoma: 'You're just in this survival mode' By www.cnbc.com Published On :: Thu, 30 Apr 2020 16:28:37 GMT Lindsey Marvel, 38, moved to New York because, she said, "I'm literally going big or going home." Now she's going home to Tulsa, Oklahoma. The effect that Covid-19 has had not just on her personal life, but on the city she loves, was simply too much. Full Article
mode Fleeing NYC for Oklahoma: 'You're just in this survival mode' By www.cnbc.com Published On :: Thu, 30 Apr 2020 18:19:04 GMT CNBC's Diana Olick reports on a woman's tough decision to flee Brooklyn, New York for Oklahoma. Full Article
mode Moderna CEO says supply of coronavirus vaccine will be limited, US will help decide who gets it first By www.cnbc.com Published On :: Fri, 08 May 2020 16:52:15 GMT "We will all be supply constrained for quite some time, meaning we won't be able to make as many product as will be required to vaccinate everyone on the planet," CEO Stephane Bancel said on CNBC's "Squawk Box." Full Article
mode Why Renaissance Capital is cautious on Kingsoft's 'growth-at-all-costs' model By www.cnbc.com Published On :: Fri, 08 May 2020 02:50:48 GMT While there has been "quite a bit of interest" in Kingsoft Cloud's IPO filing, investors should be cautious about the high-growth tech company operating on negative margins and the generally poor performance of Chinese IPOs, says Kathleen Smith, founding principal of Renaissance Capital. Full Article
mode How this company totally transformed its business model to survive the coronavirus By www.cnbc.com Published On :: Sat, 02 May 2020 15:01:01 GMT Gargiulo Produce opened in 1929 as a vegetable cart going door to door to sell food. Now, the company sells online to survive the coronavirus shutdown. Full Article
mode Jim Cramer on Moderna vaccine-sparked rally: 'Let's not get ahead of ourselves' By www.cnbc.com Published On :: Thu, 07 May 2020 23:56:46 GMT "This market does have a tendency to bounce between unbridled optimism and total despair — no middle ground," the "Mad Money" host said. Full Article
mode Op-ed: Pandemic moves Modern Monetary Theory from the fringes to actual US policy By www.cnbc.com Published On :: Wed, 29 Apr 2020 11:31:16 GMT The total amount of government economic aid in response to the coronavirus downturn is expected to exceed $10 trillion. Full Article
mode Op-Ed: Britain needs an economic model to guide the lifting of the coronavirus lockdown By www.cnbc.com Published On :: Wed, 29 Apr 2020 13:15:55 GMT Covid-19 has forced epidemiology and economics to become intertwined as never before. Full Article
mode Moderna's vaccine candidate could potentially get regulatory approval in 2021 By www.cnbc.com Published On :: Thu, 07 May 2020 14:12:03 GMT Moderna has received FDA approval for the company's Covid-19 vaccine to continue into the second phase. CNBC's Meg Tirrell reports. Full Article
mode Coronavirus app U-turn? Britain's NHS pays Swiss firm to investigate Apple and Google model By www.cnbc.com Published On :: Thu, 07 May 2020 13:16:21 GMT The NHS's digital innovation arm is paying Zuhlke Engineering £3.8 million to investigate the "decentralized" framework developed by Apple and Google. Full Article
mode Stocks making the biggest moves in the premarket: Raytheon, ViacomCBS, Moderna, JetBlue & more By www.cnbc.com Published On :: Thu, 07 May 2020 12:20:38 GMT The stocks making the biggest moves in premarket trading include Raytheon, ViacomCBS, Moderna, JetBlue, and more. Full Article
mode Moderna CEO: Covid-19 vaccine will be 'supply constrained for quite some time' By www.cnbc.com Published On :: Fri, 08 May 2020 11:21:42 GMT Moderna CEO Stephan Bancel tells "Squawk Box" that he anticipates the supply of Covid-19 vaccines will be 'constrained' at first and that the company will work closely with the U.S. government to distribute the first batches of the vaccine to areas that have the most need. Full Article
mode Moderna CEO on Covid-19 vaccine timeline, how it might be distributed and more By www.cnbc.com Published On :: Fri, 08 May 2020 14:02:20 GMT The FDA has approved Moderna's coronavirus vaccine candidate for a phase 2 trial, something the company calls a crucial step in its timeline. Moderna CEO Stephane Bancel joins "Squawk Box" to discuss. Full Article
mode Karen Bardsley: 'Panini should do NHS stickers – they're our role models' By www.theguardian.com Published On :: 2020-05-08T19:00:35Z The England and Manchester City goalkeeper on career highs and lows, including Covid-19 delaying her comeback from injuryKaren Bardsley has had a lot of time to reflect on her career. The goalkeeper left England’s World Cup quarter-final victory over Norway in 2019 with a hamstring injury, knowing she would not make the semi-final, and has not played since. With cruel irony, her clearance to return to training at Manchester City came as the Lionesses returned from the SheBelieves Cup and went straight into isolation in March.“I was like: ‘Wow, OK, I just got cleared to train with the whole squad and now I’m gonna have to wait for ever to do it,’ or at least that’s what it felt like,” Bardsley says with a laugh. “I’m just taking this as an opportunity to get as strong and as physically resilient as possible.” Continue reading... Full Article Women's football England women's football team Manchester City Women Women's Super League Football Sport
mode Aditya Birla Sun Life Financial Planning Fund -Moderate Plan - Regular Plan - Dividend Option By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 17.4391 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode Aditya Birla Sun Life Financial Planning Fund - Moderate Plan - Regular Plan - Growth Option By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 19.4425 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode Aditya Birla Sun Life Financial Planning Fund - Moderate Plan - Direct Plan - Growth Option By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 20.1761 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode Aditya Birla Sun Life Financial Planning Fund - Moderate Plan - Direct Plan - Dividend Option By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 18.2946 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode IDFC Asset Allocation Fund Of Fund-Moderate Plan-Regular Plan-Growth By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 21.1891 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode IDFC Asset Allocation Fund Of Fund-Moderate Plan-Regular Plan-Dividend By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 14.7285 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode IDFC Asset Allocation Fund Of Fund-Moderate Plan-Direct Plan-Dividend By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 15.0591 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode IDFC Asset Allocation Fund Of Fund-Moderate Plan-Dierct Plan-Growth By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 21.9455 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode Principal Retirement Savings Fund - Moderate Plan - Regular Sub-Plan - Growth By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Solution Oriented Scheme - Retirement Fund NAV 11.7284 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode Principal Retirement Savings Fund - Moderate Plan - Regular Sub - Plan - Dividend Payout By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Solution Oriented Scheme - Retirement Fund NAV 11.7284 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode Principal Retirement Savings Fund - Moderate Plan - Direct Sub-Plan - Growth By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Solution Oriented Scheme - Retirement Fund NAV 12.0601 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode Tata Retirement Savings Fund Moderate -Direct Plan Growth By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Solution Oriented Scheme - Retirement Fund NAV 30.0447 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode Tata Retirement Savings Fund Moderate -Regular Plan (Growth) By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Solution Oriented Scheme - Retirement Fund NAV 27.1740 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode HSBC Managed Solutions - Moderate - Growth Direct By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 15.1883 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode HSBC Managed Solutions - Moderate - Growth By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 14.9024 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode HSBC Managed Solutions - Moderate - Dividend Direct By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 9.5243 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode HSBC Managed Solutions - Moderate - Dividend By portal.amfiindia.com Published On :: Fri, 08 May 2020 00:00:00 Category Other Scheme - FoF Domestic NAV 14.9024 Repurchase Price Sale Price Date 08-May-2020 Full Article
mode Modern LBD, Milan By feedproxy.google.com Published On :: Mon, 20 Apr 2020 09:00:23 +0000 Full Article Women Dresses Grooming Milan
mode im aware your cable modem By www.toothpastefordinner.com Published On :: Wed, 05 Apr 2017 04:00:00 EDT Today on Toothpaste For Dinner: im aware your cable modemThe Worst Things For Sale is Drew's blog. It updates every day. Subscribe to the Worst Things For Sale RSS! Full Article comic
mode outside night mode By www.toothpastefordinner.com Published On :: Fri, 05 Jul 2019 04:00:00 EDT Today on Toothpaste For Dinner: outside night modeThe Worst Things For Sale is Drew's blog. It updates every day. Subscribe to the Worst Things For Sale RSS! Full Article comic
mode the modern camera By www.toothpastefordinner.com Published On :: Mon, 28 Oct 2019 04:00:00 EDT Today on Toothpaste For Dinner: the modern cameraThe Worst Things For Sale is Drew's blog. It updates every day. Subscribe to the Worst Things For Sale RSS! Full Article comic
mode Radio Free Burrito Presents: A Modest Proposal by Jonathan Swift By wilwheaton.net Published On :: Wed, 29 Apr 2020 20:37:50 +0000 A Modest Proposal is brilliant, biting, hilarious satire, that is as horrifyingly relevant in 2020 as it was in 1729. This reads like one of those brilliant editorials from The […] Full Article Books Podcast
mode Assist Mode By questionablecontent.net Published On :: Thu, 27 Jun 2019 22:11:11 -0300 Scuttle scuttle Full Article
mode Model Hosts The Cutest Wedding Ceremony For Her Dog And His Bride By feedproxy.google.com Published On :: Thu, 07 May 2020 09:00:00 PDT 28-years-old model, Emily Ratajkowski, and her husband are the loving owners of Colombo, the cutest good boy. They have all spent their quarantine days with their close friends, Josh Ostrovsky, founder of the Fat Jewish meme account, his wife, Caitlin King, and their dog, Happy.On Saturday, Emily decided to hosts a special wedding ceremony for Colombo and happy - 'quarantined together so why not marry our children". Ratajkowski shared plenty of behind-the-scenes footage on Instagram from the ceremony, including individual images of Colombo and Happy posing while wearing dog cones as the "the groom" and "the bride", respectively.Congrats, Colombo and Happy! Full Article dogs dog photos cute funny dogs wedding
mode Coronavirus: 'Modest' lockdown changes announced in Wales By www.bbc.co.uk Published On :: Fri, 08 May 2020 17:30:08 GMT People will be allowed to exercise outside more than once a day, First Minister Mark Drakeford says. Full Article
mode India coronavirus: Why celebrating Covid-19 'success models' is dangerous By www.bbc.co.uk Published On :: Thu, 07 May 2020 23:02:05 GMT Experts tell the BBC that euphoria over success models runs the risk of people becoming complacent. Full Article
mode Building Great User Experiences with Concurrent Mode and Suspense By reactjs.org Published On :: Wed, 06 Nov 2019 00:00:00 GMT At React Conf 2019 we announced an experimental release of React that supports Concurrent Mode and Suspense. In this post we’ll introduce best practices for using them that we’ve identified through the process of building the new facebook.com. This post will be most relevant to people working on data fetching libraries for React. It shows how to best integrate them with Concurrent Mode and Suspense. The patterns introduced here are based on Relay — our library for building data-driven UIs with GraphQL. However, the ideas in this post apply to other GraphQL clients as well as libraries using REST or other approaches. This post is aimed at library authors. If you’re primarily an application developer, you might still find some interesting ideas here, but don’t feel like you have to read it in its entirety. Talk Videos If you prefer to watch videos, some of the ideas from this blog post have been referenced in several React Conf 2019 presentations: Data Fetching with Suspense in Relay by Joe Savona Building the New Facebook with React and Relay by Ashley Watkins React Conf Keynote by Yuzhi Zheng This post presents a deeper dive on implementing a data fetching library with Suspense. Putting User Experience First The React team and community has long placed a deserved emphasis on developer experience: ensuring that React has good error messages, focusing on components as a way to reason locally about app behavior, crafting APIs that are predictable and encourage correct usage by design, etc. But we haven’t provided enough guidance on the best ways to achieve a great user experience in large apps. For example, the React team has focused on framework performance and providing tools for developers to debug and tune application performance (e.g. React.memo). But we haven’t been as opinionated about the high-level patterns that make the difference between fast, fluid apps and slow, janky ones. We always want to ensure that React remains approachable to new users and supports a variety of use-cases — not every app has to be “blazing” fast. But as a community we can and should aim high. We should make it as easy as possible to build apps that start fast and stay fast, even as they grow in complexity, for users on varying devices and networks around the world. Concurrent Mode and Suspense are experimental features that can help developers achieve this goal. We first introduced them at JSConf Iceland in 2018, intentionally sharing details very early to give the community time to digest the new concepts and to set the stage for subsequent changes. Since then we’ve completed related work, such as the new Context API and the introduction of Hooks, which are designed in part to help developers naturally write code that is more compatible with Concurrent Mode. But we didn’t want to implement these features and release them without validating that they work. So over the past year, the React, Relay, web infrastructure, and product teams at Facebook have all collaborated closely to build a new version of facebook.com that deeply integrates Concurrent Mode and Suspense to create an experience with a more fluid and app-like feel. Thanks to this project, we’re more confident than ever that Concurrent Mode and Suspense can make it easier to deliver great, fast user experiences. But doing so requires rethinking how we approach loading code and data for our apps. Effectively all of the data-fetching on the new facebook.com is powered by Relay Hooks — new Hooks-based Relay APIs that integrate with Concurrent Mode and Suspense out of the box. Relay Hooks — and GraphQL — won’t be for everyone, and that’s ok! Through our work on these APIs we’ve identified a set of more general patterns for using Suspense. Even if Relay isn’t the right fit for you, we think the key patterns we’ve introduced with Relay Hooks can be adapted to other frameworks. Best Practices for Suspense It’s tempting to focus only on the total startup time for an app — but it turns out that users’ perception of performance is determined by more than the absolute loading time. For example, when comparing two apps with the same absolute startup time, our research shows that users will generally perceive the one with fewer intermediate loading states and fewer layout changes as having loaded faster. Suspense is a powerful tool for carefully orchestrating an elegant loading sequence with a few, well-defined states that progressively reveal content. But improving perceived performance only goes so far — our apps still shouldn’t take forever to fetch all of their code, data, images, and other assets. The traditional approach to loading data in React apps involves what we refer to as “fetch-on-render”. First we render a component with a spinner, then fetch data on mount (componentDidMount or useEffect), and finally update to render the resulting data. It’s certainly possible to use this pattern with Suspense: instead of initially rendering a placeholder itself, a component can “suspend” — indicate to React that it isn’t ready yet. This will tell React to find the nearest ancestor <Suspense fallback={<Placeholder/>}>, and render its fallback instead. If you watched earlier Suspense demos this example may feel familiar — it’s how we originally imagined using Suspense for data-fetching. It turns out that this approach has some limitations. Consider a page that shows a social media post by a user, along with comments on that post. That might be structured as a <Post> component that renders both the post body and a <CommentList> to show the comments. Using the fetch-on-render approach described above to implement this could cause sequential round trips (sometimes referred to as a “waterfall”). First the data for the <Post> component would be fetched and then the data for <CommentList> would be fetched, increasing the time it takes to show the full page. There’s also another often-overlooked downside to this approach. If <Post> eagerly requires (or imports) the <CommentList> component, our app will have to wait to show the post body while the code for the comments is downloading. We could lazily load <CommentList>, but then that would delay fetching comments data and increase the time to show the full page. How do we resolve this problem without compromising on the user experience? Render As You Fetch The fetch-on-render approach is widely used by React apps today and can certainly be used to create great apps. But can we do even better? Let’s step back and consider our goal. In the above <Post> example, we’d ideally show the more important content — the post body — as early as possible, without negatively impacting the time to show the full page (including comments). Let’s consider the key constraints on any solution and look at how we can achieve them: Showing the more important content (the post body) as early as possible means that we need to load the code and data for the view incrementally. We don’t want to block showing the post body on the code for <CommentList> being downloaded, for example. At the same time we don’t want to increase the time to show the full page including comments. So we need to start loading the code and data for the comments as soon as possible, ideally in parallel with loading the post body. This might sound difficult to achieve — but these constraints are actually incredibly helpful. They rule out a large number of approaches and spell out a solution for us. This brings us to the key patterns we’ve implemented in Relay Hooks, and that can be adapted to other data-fetching libraries. We’ll look at each one in turn and then see how they add up to achieve our goal of fast, delightful loading experiences: Parallel data and view trees Fetch in event handlers Load data incrementally Treat code like data Parallel Data and View Trees One of the most appealing things about the fetch-on-render pattern is that it colocates what data a component needs with how to render that data. This colocation is great — an example of how it makes sense to group code by concerns and not by technologies. All the issues we saw above were due to when we fetch data in this approach: upon rendering. We need to be able to fetch data before we’ve rendered the component. The only way to achieve that is by extracting the data dependencies into parallel data and view trees. Here’s how that works in Relay Hooks. Continuing our example of a social media post with body and comments, here’s how we might define it with Relay Hooks: // Post.js function Post(props) { // Given a reference to some post - `props.post` - *what* data // do we need about that post? const postData = useFragment(graphql` fragment PostData on Post @refetchable(queryName: "PostQuery") { author title # ... more fields ... } `, props.post); // Now that we have the data, how do we render it? return ( <div> <h1>{postData.title}</h1> <h2>by {postData.author}</h2> {/* more fields */} </div> ); } Although the GraphQL is written within the component, Relay has a build step (Relay Compiler) that extracts these data-dependencies into separate files and aggregates the GraphQL for each view into a single query. So we get the benefit of colocating concerns, while at runtime having parallel data and view trees. Other frameworks could achieve a similar effect by allowing developers to define data-fetching logic in a sibling file (maybe Post.data.js), or perhaps integrate with a bundler to allow defining data dependencies with UI code and automatically extracting it, similar to Relay Compiler. The key is that regardless of the technology we’re using to load our data — GraphQL, REST, etc — we can separate what data to load from how and when to actually load it. But once we do that, how and when do we fetch our data? Fetch in Event Handlers Imagine that we’re about to navigate from a list of a user’s posts to the page for a specific post. We’ll need to download the code for that page — Post.js — and also fetch its data. Waiting until we render the component has problems as we saw above. The key is to start fetching code and data for a new view in the same event handler that triggers showing that view. We can either fetch the data within our router — if our router supports preloading data for routes — or in the click event on the link that triggered the navigation. It turns out that the React Router folks are already hard at work on building APIs to support preloading data for routes. But other routing frameworks can implement this idea too. Conceptually, we want every route definition to include two things: what component to render and what data to preload, as a function of the route/url params. Here’s what such a route definition might look like. This example is loosely inspired by React Router’s route definitions and is primarily intended to demonstrate the concept, not a specific API: // PostRoute.js (GraphQL version) // Relay generated query for loading Post data import PostQuery from './__generated__/PostQuery.graphql'; const PostRoute = { // a matching expression for which paths to handle path: '/post/:id', // what component to render for this route component: React.lazy(() => import('./Post')), // data to load for this route, as function of the route // parameters prepare: routeParams => { // Relay extracts queries from components, allowing us to reference // the data dependencies -- data tree -- from outside. const postData = preloadQuery(PostQuery, { postId: routeParams.id, }); return { postData }; }, }; export default PostRoute; Given such a definition, a router can: Match a URL to a route definition. Call the prepare() function to start loading that route’s data. Note that prepare() is synchronous — we don’t wait for the data to be ready, since we want to start rendering more important parts of the view (like the post body) as quickly as possible. Pass the preloaded data to the component. If the component is ready — the React.lazy dynamic import has completed — the component will render and try to access its data. If not, React.lazy will suspend until the code is ready. This approach can be generalized to other data-fetching solutions. An app that uses REST might define a route like this: // PostRoute.js (REST version) // Manually written logic for loading the data for the component import PostData from './Post.data'; const PostRoute = { // a matching expression for which paths to handle path: '/post/:id', // what component to render for this route component: React.lazy(() => import('./Post')), // data to load for this route, as function of the route // parameters prepare: routeParams => { const postData = preloadRestEndpoint( PostData.endpointUrl, { postId: routeParams.id, }, ); return { postData }; }, }; export default PostRoute; This same approach can be employed not just for routing, but in other places where we show content lazily or based on user interaction. For example, a tab component could eagerly load the first tab’s code and data, and then use the same pattern as above to load the code and data for other tabs in the tab-change event handler. A component that displays a modal could preload the code and data for the modal in the click handler that triggers opening the modal, and so on. Once we’ve implemented the ability to start loading code and data for a view independently, we have the option to go one step further. Consider a <Link to={path} /> component that links to a route. If the user hovers over that link, there’s a reasonable chance they’ll click it. And if they press the mouse down, there’s an even better chance that they’ll complete the click. If we can load code and data for a view after the user clicks, we can also start that work before they click, getting a head start on preparing the view. Best of all, we can centralize that logic in a few key places — a router or core UI components — and get any performance benefits automatically throughout our app. Of course preloading isn’t always beneficial. It’s something an application would tune based on the user’s device or network speed to avoid eating up user’s data plans. But the pattern here makes it easier to centralize the implementation of preloading and the decision of whether to enable it or not. Load Data Incrementally The above patterns — parallel data/view trees and fetching in event handlers — let us start loading all the data for a view earlier. But we still want to be able to show more important parts of the view without waiting for all of our data. At Facebook we’ve implemented support for this in GraphQL and Relay in the form of some new GraphQL directives (annotations that affect how/when data is delivered, but not what data). These new directives, called @defer and @stream, allow us to retrieve data incrementally. For example, consider our <Post> component from above. We want to show the body without waiting for the comments to be ready. We can achieve this with @defer and <Suspense>: // Post.js function Post(props) { const postData = useFragment(graphql` fragment PostData on Post { author title # fetch data for the comments, but don't block on it being ready ...CommentList @defer } `, props.post); return ( <div> <h1>{postData.title}</h1> <h2>by {postData.author}</h2> {/* @defer pairs naturally with <Suspense> to make the UI non-blocking too */} <Suspense fallback={<Spinner/>}> <CommentList post={postData} /> </Suspense> </div> ); } Here, our GraphQL server will stream back the results, first returning the author and title fields and then returning the comment data when it’s ready. We wrap <CommentList> in a <Suspense> boundary so that we can render the post body before <CommentList> and its data are ready. This same pattern can be applied to other frameworks as well. For example, apps that call a REST API might make parallel requests to fetch the body and comments data for a post to avoid blocking on all the data being ready. Treat Code Like Data But there’s one thing that’s still missing. We’ve shown how to preload data for a route — but what about code? The example above cheated a bit and used React.lazy. However, React.lazy is, as the name implies, lazy. It won’t start downloading code until the lazy component is actually rendered — it’s “fetch-on-render” for code! To solve this, the React team is considering APIs that would allow bundle splitting and eager preloading for code as well. That would allow a user to pass some form of lazy component to a router, and for the router to trigger loading the code alongside its data as early as possible. Putting It All Together To recap, achieving a great loading experience means that we need to start loading code and data as early as possible, but without waiting for all of it to be ready. Parallel data and view trees allow us to load the data for a view in parallel with loading the view (code) itself. Fetching in an event handler means we can start loading data as early as possible, and even optimistically preload a view when we have enough confidence that a user will navigate to it. Loading data incrementally allows us to load important data earlier without delaying the fetching of less important data. And treating code as data — and preloading it with similar APIs — allows us to load it earlier too. Using These Patterns These patterns aren’t just ideas — we’ve implemented them in Relay Hooks and are using them in production throughout the new facebook.com (which is currently in beta testing). If you’re interested in using or learning more about these patterns, here are some resources: The React Concurrent docs explore how to use Concurrent Mode and Suspense and go into more detail about many of these patterns. It’s a great resource to learn more about the APIs and use-cases they support. The experimental release of Relay Hooks implements the patterns described here. We’ve implemented two similar example apps that demonstrate these concepts: The Relay Hooks example app uses GitHub’s public GraphQL API to implement a simple issue tracker app. It includes nested route support with code and data preloading. The code is fully commented — we encourage cloning the repo, running the app locally, and exploring how it works. We also have a non-GraphQL version of the app that demonstrates how these concepts can be applied to other data-fetching libraries. While the APIs around Concurrent Mode and Suspense are still experimental, we’re confident that the ideas in this post are proven by practice. However, we understand that Relay and GraphQL aren’t the right fit for everyone. That’s ok! We’re actively exploring how to generalize these patterns to approaches such as REST, and are exploring ideas for a more generic (ie non-GraphQL) API for composing a tree of data dependencies. In the meantime, we’re excited to see what new libraries will emerge that implement the patterns described in this post to make it easier to build great, fast user experiences. Full Article
mode New star Oh looks to role-model Kim as K League resumes By www.fifa.com Published On :: Thu, 07 May 2020 23:54:00 GMT Full Article
mode Meet Harsh Gawali a fitness enthusiast and model who has set the internet ablaze already By www.mid-day.com Published On :: 23 Apr 2020 08:42:06 GMT Harsh Gawali is a 24-year-old guy from Pune who kickstarted his career as a freelance model back in 2015. Currently working as a senior marketing operation analyst at one of the leading Edtech companies in India, Harsh has effortlessly balanced his life to dedicate time for his modelling career as well. In addition to his modelling assignments, Harsh is a huge fitness enthusiast and athlete. Harsh, being a public figure always had to look fresh and fit. From his eating habits to waking up early in the morning and running and doing a proper workout, Harsh has to struggle hard in order to maintain himself. Harsh Gawali is a former 55 kgs wrestler too and has achieved milestones in climbing some of the hardest pinnacles of Maharashtra. In addition, Harsh is also a trained cadet of Maharashtra Civil force and has served the rescue team lead during flood crises in Sangli and Kolhapur, 8 months ago when he led a team and successfully rescued 200+ people in 6 hours. Harsh is a profound model and with his intense looks and perfectly shaped physique he has been drooled by many girls and his, Instagram is proof of it. With a well-built physique and great interest in sports, adventures, and fitness, Harsh has been a total inspiration for all the youngsters out there. Harsh is a fitness phenomenon and pro-level combat athlete, with extensive knowledge about fitness, healthy lifestyle, personality development, and much more. Catch up on all the latest entertainment news and gossip here. Also, download the new mid-day Android and iOS apps. Mid-Day is now on Telegram. Click here to join our channel (@middayinfomedialtd) and stay updated with the latest news Full Article