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
1
vote
3 answers

React Native - How To Access Refs?

I'm trying to access this.refs so I can scroll to the top of a Flat List but it is undefined. My render method is this: render() { return ( { this.state.loading &&
Tenatious
  • 849
  • 4
  • 12
  • 32
1
vote
1 answer

React (Refs to Component): Unable to use "ref" with "conditional rendering"

I am new to react. I am unable to figure out how to make this work. This [Refs to Component] ref={(node) => {this.loginMobileInput = node}} gives me error Uncaught (in promise) TypeError: Cannot set property 'loginMobileInput' of undefined at…
Ghost
  • 63
  • 1
  • 8
1
vote
1 answer

Perl errors: Can't use string (" ") as a HASH ref while "strict refs" in use at Test.pl line "n", line 2

I'm currently working on a script which takes a file as an input. The input file looks like this: ECHANTILLON GENOTYPE CAN1 genotype1 CAN2 genotype1 CAN3 genotype1 EUG1 genotype2 EUG2 genotype2 …
Amy Ndy
  • 35
  • 1
  • 6
1
vote
1 answer

Vue2 & $refs & Cannot read property 'msg' of undefined

I use $refs to bind the child component but Can not get the value of child component from parent component thorough $ref.refname.msg. (I have tried $children which could work). msg of child component has been defined. msg info could be got through…
Yao Iris
  • 38
  • 1
  • 1
  • 4
1
vote
1 answer

Clojure: Working with vector and ref

Please someone who worked with ref and vector could help-me ? This vector in each line there is a (ref {:desc "text" :amount double}): [#
1
vote
1 answer

Clojure: Refs example for bank transaction

I am still noob at Clojure, right know I am trying to resolve a problem involving bank transaction scenario for university. The problem is quite easy: I have to develop a solution to credit, debit and transfer money. I stopped here: (def account …
1
vote
1 answer

refs does not work in react in order to call child method

There are two component in react project. 1, Parent 2, Child Now, I'd like to use childMethod in Parent component. In some pages of stackoverflow, everyone said refs is effective. But in my project, it's not working. class Parent extends Component…
Yusuke Hidaka
  • 11
  • 1
  • 2
1
vote
1 answer

this.refs is an empty object in React

I’m having an issue while accessing this.refs in the handleSubmit function. My container looks like this: import React, { Component } from 'react' import { Link } from 'react-router' import { connect } from 'react-redux' import { getSomeStuff }…
mr guest
  • 21
  • 5
1
vote
1 answer

Access refs of sub component in React

If I have a component like: class Sliders extends React.Component { render() { return (
Rob
  • 3,333
  • 5
  • 28
  • 71
1
vote
1 answer

In react-native how can I use refs get the multi level component

in the componentDidMount function I can use this.refs['test'] get this component, but use this.refs['list'] will get a error. I try use 'ref={list=> { this.list = list}' to add a ref for the component, and use 'this.list' to get the component, and…
Taven_lxc
  • 41
  • 2
1
vote
1 answer

ReactJS - can not get information about input

i´m new with reactjs. I don´t know how can i get the value of my input fields. The best way i show you how i code the component: create class inputFields extends React.Component{ getAllInformationAsJSON() { return { company :…
1
vote
1 answer

Error when changing git commit author with filter-branch

I'm trying to change the author for my git commits as I forgot to update my global e-mail. I used this code below to change it (with my own details). git filter-branch --env-filter ' OLD_EMAIL="OldEmail" CORRECT_NAME="new name" CORRECT_EMAIL="new…
Conduit
  • 11
  • 2
1
vote
1 answer

Exposing third-party lib (Firepad) methods in a React component

I've been searching for answers to this for a couple of weeks now, and I've read through everything related I could find (on SO, in React's docs, in the source for related libraries like react-codemirror, etc.), and can't find an answer I can…
Zac Anger
  • 6,983
  • 2
  • 15
  • 42
1
vote
2 answers

React 0.14 - using refs via findDOMNode

I am trying to access an input field on the click of button using refs. The syntax that I have written works fine in ComponentDidMount but gives the following error on click of the button. Uncaught TypeError: Cannot read property 'refs' of…
Nikita Jajodia
  • 4,220
  • 3
  • 21
  • 29
1
vote
1 answer

Why can't refs be enclosed?

I'm trying to use react components like that: .... .... Why can't I use this.refs.item in my code? P.S. I solved this by another way, but this question is interested me yet.
Lana
  • 11
  • 1