question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is `render` property?

See original GitHub issue

The server-side rendering section provides the code example:

<Provider store={store}>
  <RouterProvider router={renderArgs.router}>
    {render(renderArgs)}
  </RouterProvider>
</Provider>

But it doesn’t say where is render variable taken from. Where can render function be obtained? Or must it be created manually? If yes, what must it do and what must it return?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
taioncommented, Aug 18, 2018

It’s the output of createRender; see https://github.com/4Catalyzer/found/blob/master/examples/universal/src/render.js in the SSR example.

0reactions
catamphetaminecommented, Aug 24, 2018

@jquense

the equivalent code in resolveElements written with only promises would be orders of magnitude more complicated than the async iterator.

So, turns out that resolveElements is only using generators to return several times from a method. And now that I found that out I can conclude that your “orders of magnitude more complicated” statement is clearly wrong and intentionally deceptive. Returning an infinite iterator from a function using pure Promises is a very simple thing via { value: any, hasNext: boolean, next(): function }. So you clearly don’t understand too much how Promises really work and what they’re capable of. And you’re spreading false statements left and right. I guess your developer skill level is above average maybe, but not higher. I’ll assume all your statements as being falsy from now on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

House Rendering: How it's Done, Plus Inspiring Real Projects
Think of house rendering as a type of cladding for the exterior of the house — applied to the exterior of a home,...
Read more >
Rendering a house – everything you need to know - Ideal Home
The purpose of render is typically to improve external appearance, keep water out and increase resistance to weather. So render should only be ......
Read more >
How to render walls: a beginner's guide to rendering
Render can be sand and cement or a flexible, breathable polymer modified render for homes with solid walls. It can hide poor-quality or ......
Read more >
Everything you need to know about house rendering
Render is a protective coating added to the brickwork of a property, which leaves a smooth or textured finish either in a specific...
Read more >
What is Render property , what does it do - ServiceNow
What is Render property , what does it do . ... when i check that UI action for that table , its a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found