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.

Feature request: context prop to Visibility component

See original GitHub issue

Apologies if this is not the right forum to make this request, but it would be great to have a context prop for the Visibility component, much like you can change the context in Semantic UI: https://semantic-ui.com/behaviors/visibility.html#/settings.

For example. I want to change the scroll event listener to listen on the scroll of a surrounding <List> component (i.e. a component which has a height less than the window height, but has an overflow so is scrollable).

Currently, when this component is scrolled, none of the Visibility component’s props fire because it does not think that the window is being scrolled.

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
levithomasoncommented, Sep 2, 2017

@frogbandit @mariolamacchia Note we are adding a Ref component that will enable SUIR to support React elements everywhere we support DOM nodes. This includes stateless functional components. I responded here https://github.com/Semantic-Org/Semantic-UI-React/pull/1978#issuecomment-326746794 as well. You can see #1879 for the work being done.

0reactions
layershiftercommented, Nov 22, 2017

If you have an issue, create a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Context - React
Context. Context provides a way to pass data through the component tree without having to pass props down manually at every level.
Read more >
React Context API: A deep dive with examples - LogRocket Blog
Review what the React Context API is, when we should use it to avoid prop drilling, and how we can use Context most...
Read more >
Building React Components Using Children Props ... - Soshace
React provides a number of powerful patterns to compose components; for example, Containment, Specialization, and Render Props.
Read more >
How to Use Context API with Hooks While Avoiding Bottlenecks
Learn how to efficiently create and consume Context API with the use of hooks without performance issues.
Read more >
Feature Visibility | Enterprise Architect User Guide
Select the checkbox against each scope that should be visible, and clear the checkbox against each scope that should not be visible. Define...
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