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
2 answers

Fire child components function from parent component using a ref

Morning! I have a component setup like below (React Native) I am trying to trigger a function in the class by pressing a button in a sibling component. In the parent component, I am setting a ref to the component. The ref is…
0
votes
0 answers

rendering ref in a child component from another child component of the same parent

I have a parent - Planner, and two children - Calendar and Week. I want to display an element from Calendar to Week. I already can access the element in Planner using refs, but I am not sure how to forward the ref from Planner to Week. import React…
Rumba
  • 181
  • 1
  • 2
  • 9
0
votes
0 answers

Focusing on Input element using ref does not work

Hi everyone I am working on a project which I need to handle focus elements using the arrow keys. Right now everything is ok and the functionality is working by click. Unfortunately, when I am using the arrow keys the process work for the tr…
Mazizi
  • 41
  • 5
0
votes
2 answers

How to use createRef() instead of this.refs?

I work on a project which use "react-notification-alert" from creativetim. In their doc they show an example to use their alert. This works basicly with this.ref but I know that is depreciated, so I tried to replace it by using createRef() like…
Simon
  • 1
  • 6
0
votes
1 answer

Element is undefined because it is not rendered yet. How to wait for it?

In my Vue app I have an image element with a bound src. this code is in a stepper. In one step the user selects a picture to upload an in the next step the image gets shown (which works as intended). However I am trying to initiate a library on the…
Travinns
  • 263
  • 1
  • 3
  • 13
0
votes
2 answers

How to get a ref array

Hello guys ! export default class Test extends React.Component { constructor(props) { super(props); this.ref = []; } handleClick = () => { let doc; doc = this.refs["link" + 0]; console.log("ref is…
Jim
  • 669
  • 4
  • 10
  • 24
0
votes
1 answer

memory increment of the application in the browser while running it for several hour

I am stuck with the memory increment of my application and as it is single page I can't even reload it. After running my application for around 5-6 hour memory size is reaching around 600mb from initial loading i.e 120mb and we did some fixed for…
Bishal Jain
  • 189
  • 1
  • 2
  • 10
0
votes
0 answers

Vue calling method in children in v-for

I have a component in a v-for
Within that component…
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
0
votes
0 answers

Calling input click() from react ref does not work

I want to trigger the HTML validation of a form field before submitting it (type email here). More precisely when losing focus. From what I gathered it's not possible to trigger the built-in validation without submitting the form, hence this…
Warven
  • 1
  • 1
  • 3
0
votes
0 answers

Image src disappears after screen size reduced to below a certain range

I am converting from pdf to canvas and then from canvas to png and displaying it in tag. Everything works perfectly but then after I minimize screen size to below about 1000x353 range, the image src disappears. I am displaying those images on a…
faraz
  • 2,603
  • 12
  • 39
  • 61
0
votes
1 answer

reactjs how to use refs

I'm new to Reactjs. I'm trying to make a story player (like audio player but with stories). https://i.stack.imgur.com/WX6sI.jpg render() { const storiesList = this.props.stories; return(
{ …
Dan Cristian
  • 13
  • 1
  • 4
0
votes
1 answer

manipulating an atom containing a ref collection in clojure

I have an application that is supposed to book flights for customers within their specified budget. As such I have customer data and available flights data. I then develop the solutions in Clojure as follows. First, I create a flights atom: (def…
Gakuo
  • 845
  • 6
  • 26
0
votes
1 answer

adjusting the values of an atom which is made up of a list of refs

I have an atom which is to contain a list of refs. How would I update the list of refs inside the atom? I tried the following but it does not work. (def theatom (atom [])) (def mylist [1 2 3 4]) (reset! theatom (map ref mylist)) (swap! theatom (fn…
Gakuo
  • 845
  • 6
  • 26
0
votes
1 answer

Calling Method in React Native using Refs Does Nothing

I'm making a simple pomodoro app in React Native, and I came across a problem with calling a method from a child component. In the code below, the method I am trying to call is reset, which I call from resetTimer in the parent. This does not work,…
Ivan
  • 93
  • 1
  • 5
0
votes
0 answers

MongoDB (mongoose) about refs

who can explain with example how to get from another schema user data (for example useravatar) while i read about refs and i cant understand. This is my code, but i want to send back not only article but with profile datas about author. How can i…