Questions tagged [refs]

Resilient File System

The Resilient File System (ReFS) is Microsoft's newest file system, designed to maximize data availability, scale efficiently to large data sets across diverse workloads, and provide data integrity by means of resiliency to corruption. It seeks to address an expanding set of storage scenarios and establish a foundation for future innovations.

162 questions
3
votes
1 answer

Retrieving ReFS integrity stream checksums

Is it possible to retrieve the checksums/hashes that ReFS creates for integrity streams? I found this document which describes a new API control code: FSCTL_GET_INTEGRITY_INFORMATION, but it seems to only get some details about the integrity stream…
2
votes
0 answers

Keep textarea focused while clicking on dropdown in react

I have a scenario where I need to make the textarea focused even if I interact with other components like a dropdown. I know we can't have two elements focused simultaneously but I am wondering if this can be done using refs in react. I have seen…
Stack
  • 429
  • 1
  • 4
  • 12
2
votes
2 answers

Is there a way to set a ref to List with react-virtualized?

I'm trying to reference the scrollable List in react-virtualized by using a ref. But my ref is always showing it's current attribute as undefined. Does anyone know how to use a ref with react-virtualized List? Here's what I am currently doing, but…
UCAudio
  • 77
  • 1
  • 5
2
votes
2 answers

How can i get a ref to show me its pageYOffset?

How do you retrieve pageYOffset from a ref? When I try this, it comes back undefined. edit: (this is using the useRef hook and a functional component) codesandbox URL: https://codesandbox.io/s/prod-silence-8f07c?file=/src/App.js //button to get…
Alexander Hemming
  • 753
  • 1
  • 6
  • 28
2
votes
1 answer

Git reference directories /.git/refs

On Windows Git has problems with refs differing only in the case: $ git branch foo $ git branch FOO fatal: A branch named 'FOO' already exists. $ git branch dir/foo $ git branch DIR/bar $ git branch --list * develop foo dir/bar dir/foo That…
Thomas S.
  • 5,804
  • 5
  • 37
  • 72
2
votes
2 answers

How to create a canvas dynamically in reactjs and add refs dynamically?

Could anyone tell me how to create refs in react dynamically? For example, I have this.image = el} > I want to create more dynamically. Like this:
faraz
  • 2,603
  • 12
  • 39
  • 61
2
votes
1 answer

Error 'ref is not a prop' when using ref on a div inside of a react component

So the main aim of me using refs is so that I can reset the scroll position of a scrollable div, this is an image of the div before adding content this is how it looks before dynamically adding divs to the scrollable container div This is a…
R.Thompson
  • 141
  • 1
  • 12
2
votes
3 answers

React - How do I access a function in another component?

My structure is as such: I have a function in . Since controls the grid-layout, and is a Navbar with buttons, I want to have a button in which…
cbll
  • 6,499
  • 26
  • 74
  • 117
2
votes
1 answer

How can I get a html tag's value on React?

I'm currently developing a function of the price tab by using React. The main function of these components is to let user add one of these classes price into shopping cart .The problem is how Can I get a HTML tag's html string? my sample code is…
Rick Z
  • 41
  • 1
  • 8
2
votes
0 answers

How to access to actual Component when using ref and having ProxyComponent

We have a ref to a react component and want to call a method of this component. When using the ref it is a "ProxyComponent" object. How can I use it as my actual component or what to do to be able to do this. I saw, that there is the attribute…
Ben
  • 51
  • 2
2
votes
1 answer

Es6 React Refs to components

How do I get a reference to a component using React with ES6? I have a Component A class ComponentA extends React.Component { doSomethingInComponentA() { //do Something here.. } } render(,…
Nahush Farkande
  • 5,290
  • 3
  • 25
  • 35
2
votes
1 answer

reactjs communicate between components via refs

I have 3 components. One parent component and two child components (A,B). The first child component A has a button that triggers a parent components function. The parent has a switch either to display child component B or not. If the child component…
bdart
  • 745
  • 6
  • 18
2
votes
3 answers

Error using refs in React 0.14.8

I'm working on extracting some code from my app into an open source package. Both my app and my package depend on the same version of React, 0.14.8. Ever since I moved the code into the package (and made some code changes) I've been unable to…
Samo
  • 8,202
  • 13
  • 58
  • 95
2
votes
1 answer

In ReFS what is the method of checksum generation?

In ReFS what is the method of checksum generation? I haven't been able to find out.
user3201068
  • 147
  • 7
1
vote
1 answer

Cannot read properties of undefined (reading '$refs') vue js

Getting the Error Cannot read properties of undefined (reading '$refs') though I'm having a reference in the template. Does it mean I must use Vue mounted hook ?
user20984971
1 2
3
10 11