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
0
votes
1 answer

Passing down props in react rails and setting refs

I am trying to build a simple rails backend and react frontend blog app. Everything was going fine until I get to edit action when I was trying to edit a post. I can not set propTypes and using refs in form. I am getting the following error [![see…
Hindreen
  • 98
  • 1
  • 9
0
votes
1 answer

Vue `$refs` issues

I've an issue in this code let bus = new Vue(); Vue.component('building-inner', { props: ['floors', 'queue'], template: `
0
votes
0 answers

Hiding a HTML element nested in a React component

I have a table which is displayed as result from an API call to my backend from the front end via a form. The problem is the header is getting generated for each row of data, thus creating a redundancy. I looked into refs as a way to access HTML…
Antonio Pavicevac-Ortiz
  • 7,239
  • 17
  • 68
  • 141
0
votes
1 answer

React OnScroll event listener in mapped array

I am trying to set it up so that when an image mapped from an array is scrolled, the state is updated with that image's coordinates thus updating the Google Map.
Nolan Davis
  • 125
  • 1
  • 1
  • 7
0
votes
0 answers

Setting a ref in a callback doesn't save the actual element (React)

I think I'm misunderstanding how refs are supposed to work. In a component, I'm returning: return this._canvas = ref}/> Later, in componentDidMount, I attempt to access the ref as: this._canvas.getContext('2d') which…
erythraios
  • 249
  • 1
  • 9
  • 21
0
votes
3 answers

React - Can't access refs in stateful component event handler

I have a class component that has a onClick event handler that references an inner ref input. However, in the event handler input is null. I am binding the event handler to this in constructor. import React, { Component} from 'react'; class…
Bob
  • 821
  • 1
  • 17
  • 36
0
votes
1 answer

Why can't ref to refresh button?

I'm creating an ExtJS 5.1.1 demo app. Try to give a refs for refresh button of gridpanel, so that I'll able to set a function for reload the data inside the grid. I guess that I can't create correct refs for both Grid panel and Refresh button.…
Nuri Engin
  • 813
  • 10
  • 38
0
votes
1 answer

Triggering List public methods to resize row heights

Even after successfully setting a List ref (as shown in the tree.js example), I seem to be unable to successfully trigger a remeasuring of row heights using public methods (also shown in the tree.js…
btb
  • 21
  • 3
0
votes
1 answer

Why is there a syntax error in my React component class?

I have a syntax error in my code, and I'm not sure why. Does it have to do with the way I used refs? export default class ToggleMenu extends React.Component { showRight: function() { this.refs.right.show(); } render() { return ( …
Alex
  • 457
  • 6
  • 12
  • 27
0
votes
1 answer

reactjs retrieve all children refs parent event (handleSubmit)

/* event to fetch all refs value and submit */ /*this is all the refs sittin*/ i don't know how parent can get all refs from the child ? Thanks in advance
Denny Rachmadi
  • 163
  • 1
  • 3
  • 15
0
votes
1 answer

Should i release objects that i get from dictionary on Mac?

ie: boolRef = (CFBooleanRef)CFDictionaryGetValue(descriptionDictionary, kDADiskDescriptionMediaRemovableKey); if (boolRef) { CFRelease(boolRef); // do i need this code? }
ABBAPOH
  • 11
  • 2
0
votes
2 answers

Perl hash strict ref error in spreadsheet

Below is the perl code use Spreadsheet::WriteExcel; my $workbook = new Spreadsheet::WriteExcel( 'one_worksheet.csv' ); my ${path_1} = $workbook->add_worksheet('Max Input'); my ${path_2} = $workbook->add_worksheet('Min Input'); foreach (keys…
Bharath
  • 11
  • 2
0
votes
1 answer

How to access the refs after the universal React app finished server side first screen rendering?

I have a universal React + Redux app which render the first screen page on server side, then the browser side ReactJS will finish the rest of tasks. Currently I met an issue, I can't access the refs using 1. this.refs[xxx] 2. ref={(ref) => this.xxx…
enterzhu
  • 87
  • 1
  • 1
  • 7
0
votes
0 answers

Can't pass property from parent element to react-select component

I'm trying to pass property to react-select element from other component but I get following error Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not…
Nishanth Matha
  • 5,993
  • 2
  • 19
  • 28
0
votes
1 answer

Reactjs ref missing after destroying cloned element

I have issue keeping ref of nested original element while cloned parent gets unmounted. Not sure what I am doing wrong. Have page with structure like this ...
Oozhaa
  • 181
  • 1
  • 12
1 2 3
10
11