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.

Optional(?) feature to let users control their own rendering

See original GitHub issue

I have a requestAnimationFrame higher up in my component tree than the Three.js code, to do things like update overlayed GUI elements using state from the game, and drive the updating of my game state (which is independent of the component tree). It appears this library controls its own requestAnimationFrame handler and the only way to hook into it is inside a <Canvas>. What about a way to let the user opt-in to their own animation, or remove it entirely and always make the user call reqAnimFrame? For example with this setup I don’t think an end user could do a render-only-one-frame setup to render a static webgl image?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

7 Ways to Implement Conditional Rendering in React ...
One feature that allows for this is conditional rendering. ... Open the App.js file in your code editor, scroll down to the render()...
Read more >
Client-side vs. Server-side vs. Pre-rendering for Web Apps
I discovered this solution with Preact and its own CLI that allows you to compile all pre-selected routes so you can store a...
Read more >
Conditional Rendering - React
Use JavaScript operators like if or the conditional operator to create elements representing the current state, and let React update the UI to...
Read more >
Feature Toggles (aka Feature Flags) - Martin Fowler
Feature Toggles (often also refered to as Feature Flags) are a powerful technique, allowing teams to modify system behavior without changing code. They...
Read more >
text-rendering - CSS: Cascading Style Sheets - MDN Web Docs
The text-rendering CSS property provides information to the rendering engine about what to optimize for when rendering text.
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