Questions tagged [render]
Rendering is the process of generating an image from a model (or models in what collectively could be called a scene file), by means of computer programs.
4,817
questions
0
votes
0
answers
14
views
Constant rerendering state updates
I'm having trouble when I change a text in an input field the state always re-renders and I don't know what to do. I know it's possible to avoid it using with hooks like useRef()and useCallback and I ...
0
votes
0
answers
13
views
Symfony render controller
want to display a form in a modal in the header. In order to make the form work I call the controller Homecontroller.
I called the controller with render controller in the branch but I got a blank ...
0
votes
1
answer
26
views
RenderView in Symfony Helper usage
How can I use $this->renderView inside a Symfony helper class (not inside a controller)?
I'm new about the function renderView but what do I have to setup to use it within the Helper class?
0
votes
0
answers
7
views
Python's requests_html render() function does not allow to persist CSRF token - cannot login to website
I need to use .render() to get the entire DOM content off of a website managed by a dynamic front-end framework (JS or Ajax e.g.). That website stores a CSRF token in a hidden input field as usual. ...
-1
votes
1
answer
17
views
Associate images to array element result
I'm exercising my skills with a simple card game. I've managed to draw a card randomizing and looping through arrays. My question is. How could I now associate each card to an image for it to be ...
-2
votes
0
answers
14
views
Why does this Render Error keeps popping up despite having a return statement? [closed]
The error is here , it just returns a render error that a return statement is missing
return
(
<View style={styles.container}>
{/* Header */}
<SafeAreaView>
...
0
votes
0
answers
24
views
access form from another funcion
Question is..
I have static page profil.py:
def profil(request, pk):
context = {}
person = User.objects.get(id=pk)
try:
person.profesor
except Profesor.DoesNotExist:
...
0
votes
2
answers
36
views
ReactJS Antd Table Rendering Old Data
Summary: I have a component that contains an Antd Table component. The Antd Table component is created initially based on the original userData that is generated using a fetch request. The data is ...
0
votes
1
answer
22
views
React - prevent calling useEffect for the first mount [duplicate]
I want to prevent calling my useEffect on the first mount.
how can I do this?
I want the best practice.
I don't want to use if condition
import { useState, useEffect } from "react";
const ...
0
votes
0
answers
28
views
Vue js render with different request
I am making an App with vue js and laravel using API,i am getting original data , but there is an optional parameter that i want to insert in the query to render the data accordingly, if there is no ...
1
vote
2
answers
24
views
Rendering API results
I'm trying to render the "excuse" results from the following API. 'https://excuser.herokuapp.com/v1/excuse'
I've followed several tutorials such as this (https://www.youtube.com/watch?v=uxf0-...
0
votes
1
answer
41
views
collect data from functions it keeps refreshing every time React
**import { controls } from "../../../constants/controls";
import { useKeyPress } from "../../../hooks/useKeyPress";
import { useArena } from "./useArena";
const getDamage ...
0
votes
0
answers
25
views
Fetching data via API. On pagination next page I fetch the data (showing in console log) but it won't render
I am fetching the data It will show the first 20 characters and render them to the UI but on the second page it only fetch the new data but it does not update on the UI.
I want to for every new page ...
0
votes
0
answers
12
views
Is there a way to detemine if the re-render is because of props or state change?
I want to stop the re-render on certain props changes, but if any state is changed i want it to re-render, I know one way is to check for all the states and props, but there's quite some complex data ...
0
votes
2
answers
35
views
How remove or unmount React App from a website properly
In my website, i have a button to launch an react app in a specific div. When i click upon it, i create a react root div and render the react app inside.
What is the proper way to close it?
<!--...
0
votes
0
answers
12
views
NodeJS app build is successful (Render) but Application Error in render at the launch. Status is failed, no error logs
Status shown failed but in console log deployed successfully & server is up.
Image for your referance
app url
0
votes
0
answers
33
views
OpenAI Gym - Env.Render() function returning "Display surface quit"
A screenshot of my code with error
I am following the tutorial seen at https://www.youtube.com/watch?v=7SVv07QXO5M&ab_channel=HackersRealm
The exact code I am following is here: https://github.com/...
0
votes
0
answers
39
views
Subplots with QuTip Bloch sphere: render() got an unexpected keyword argument 'fig'
I want to subplot the Bloch sphere.
from mpl_toolkits.mplot3d import Axes3D
fig, ax = plt.subplots(figsize=(7, 7), subplot_kw=dict(projection='3d'))
b = qt.Bloch(fig=fig, axes=ax)
b = qt.Bloch(fig=fig,...
0
votes
0
answers
17
views
I want to display text using Android and OpenGL
I want to display a text within a OpenGL Android Application. I have tried the code below, but, nothing is displayed. Some other attempts have been tried but none was displayed either. Could anyone ...
-1
votes
1
answer
41
views
How to draw a line in Minecraft with Fabric
Final target: draw a line in sky
Env
Config in build.properties
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.3
loader_version=0.13.3
fabric_version=0.51.1+1.18.2
Development ...
0
votes
0
answers
17
views
Best practise: Where to put the Navbar component so that it -re-renders with every page?
This has been bugging me for a long time, and my head just can't seem to come up with a solution that works fluently. I will try to be short:
I have a React app where I update my Navbar based on an ...
0
votes
1
answer
25
views
How can I render user's input (which is stored in an array) with LINE BREAKS using react.js?
I've been trying to render {ingredients} with line breaks, each time the user presses Enter and keys in another ingredient. I've been getting all the user's inputs in one line e.g. grapeonionlettuce I'...
0
votes
1
answer
28
views
React Native: How to prevent an onLayout function from being called on every re-render
My React Native component has a prop this.props.a that gets updated every 60s elsewhere in the app. Within this component, I have a <View> with an onLayout() function. This onLayout gets called ...
1
vote
0
answers
17
views
WebGL how two objects in the same shader can interact correctly
I have two objects in a single shader: a cloth (made of vertices and triangles) and a sphere. When the cloth falls down and meets the sphere, there must be a collision such that the two objects are ...
0
votes
1
answer
30
views
Isolate OpenSCAD view
I occasionally do some work in OpenSCAD on Fiverr. Instead of sending 100 screenshots each day I would like to provide my clients with a live 3D preview of the object. But I need to do this without ...
0
votes
0
answers
15
views
Apply material to mesh based on height
I have a randomly generated mesh with height from 0 to 20 and size of 100 by 100
And I want to do following to it.
If mesh height is from 0 to 7 apply material 1
If mesh height is from 5 to 15 apply ...
0
votes
0
answers
14
views
Outlook IOS and Mobile Gmail clients doesn't render the complete email
I'm working on html email dev using Salesforce and litmus. When I test Outlook IOS devices the email cuts at the middle of the footer. Some times happens the same with gmail clients and it's require ...
0
votes
0
answers
47
views
Why is my conditional rendering an image for all keys instead of just one in react?
I'm building a tic-tac-toe app. I haven't added functionality between the X's and O's, right now, I'm stuck on rending ONE image via the onClick. I've set the state to make the onClick - at least I ...
0
votes
0
answers
17
views
How do I render an image when I click a div in React?
I'm trying to create a tic-tac-toe game in React. I've build the gameboard and I want to render an image - in Gameboard.js - when user clicks one of the squares. I've built a styled img container, but ...
3
votes
1
answer
61
views
How do I get my data to render correctly?
Could somebody review my code to make sure its all correct? I have read the data in and looks all fine, just when I go to run the shiny, the chart appears, but no data. I have hidden some ...
0
votes
1
answer
51
views
React conditional rendering with functions and variables
I'm trying to make a render of a HTML element stored in a variable in a function component in React. This element should render only after the user successfully used a form to send data, acting as a ...
0
votes
1
answer
56
views
Nextjs Image component not rendering images in Safari
Setup:
nextjs v12.1
safari v13.1.2
node v14.19 (can adjust with nvm and have tried a few)
The problem is simple, but i cant figure out a solution.
I have multiple <Image /> components in my ...
0
votes
0
answers
30
views
aerender from C# console Application
I'm trying to render an Adobe After Effects composition from a C# Console Application but it's not working. It doesn't even give any error, the code executes smoothly.
string strCmdText = @""...
-1
votes
1
answer
41
views
html cannot display when render
I expect a custom navbar where I set nav background to black and set a tag to display inline-block and padding 10. But, HTML do not render anything when I add css. Though, It is rendering when I ...
0
votes
0
answers
29
views
How require websocket on rendered file in public js / Node.js
my app.js route and public is working
my controller js
const WebSocketServer = require('ws').Server;
const tvindex = function (req, res) {
res.header('Access-Control-Allow-Origin', '*');
res....
0
votes
1
answer
36
views
rendering list from array in reactjs
I'm loosing my mind because I don't understand why the list tags are not rendered in my web. Can someone see what's wrong in the code???
import "./resultBox.css"
import { useRef } from "...
0
votes
0
answers
5
views
How to link different textures already loaded to enviroment output node with python?
I have 3 different hdri's i'd like to cycle between renders.
And I'd like to bind them into Collection Render Visibility to control.
Tried with mix shaders and altering the factor, but can't make it ...
0
votes
0
answers
40
views
Blender handler function fails during render at mesh join operation
I created a Blender handler function in the Python API that deletes any existing mesh, creates two cubes at a size dependent on the scene time frame and then joins the two cubes into one single mesh. ...
0
votes
1
answer
33
views
Blender textures overlapping when baking from two to one texture
I have a fbx which have two textures. One for the face and one for the body. I am trying to bake these two textures into one. This because I want to import the fbx to Roblox. But when I bake, the two ...
0
votes
0
answers
14
views
Transparent material render has super dark shadows in blender
I'm using blender 2.91.2 with cycles render on a mac. I'm trying to export a whiskey bottle and glass. I attached the material settings for the whiskey, as well as the render settings. I increased the ...
0
votes
1
answer
42
views
Uncaught Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. I get this error while rendering my data
I am getting this error while rendering "Uncaught Error: Too many re-renders. React limits the number of renders to prevent an infinite loop." It is caused by the second if in sortData ...
0
votes
0
answers
90
views
Can't I call "createRoot" or "ReactDOM.render" in the component?
I want to find a dome element made by an external library (ex: react-calendar..) and want to attach my component as child of the element. So, I made React node with React.createElement and updated the ...
0
votes
1
answer
50
views
Error occurred prerendering page "/page/[...uri].js
Guys i got strange error when i try to run "npm run build" in my nextjs,
My file is in
pages/agenda/[...uri].tsx
The part of the code who run the problem
export async function getStaticProps(...
0
votes
1
answer
54
views
Why is my Flash.now not outputting after a render?
I have a minor issue I can't seem to figure out.
Regular flash works just as intended.
flash[:test] = 'Blarrgh'
redirect_to etcs_url
Will display 'Blarrgh' since I have this code in my application....
0
votes
0
answers
31
views
How to re-render without useEffect
I am trying to find out how I can cause a re-render without forcing it by adding another dependency to the useEffect array.
if (projectId) {
dispatch(projectRoleActions.getAll({ ...
0
votes
1
answer
30
views
Django renders the HTML file without including static files(CSS styles, images)
There I have tried to render the HTML file
html_message = get_template('mail.html').render(context=data)
email = EmailMultiAlternatives(
"Subject",
html_message,
...
0
votes
0
answers
27
views
React - rerendering fabric.js canvas
I want to create option in React, to completly override fabric.js canvas with a new instance.
Here's my fabric canvas component's code:
function FabricCanvas(props){
const canvasID = "...
0
votes
0
answers
18
views
React link does change URL but componet is not rendered
Router.js
import React from "react";
import {
HashRouter as Router,
Redirect,
Route,
Switch,
} from "react-router-dom";
import Auth from "../routes/Auth";
import Home from "../routes/Home";...
0
votes
0
answers
75
views
Unity URP Shader GrabPass vs MultiplePasses
Im working on intersection shader on URP that can recolor (grayscale) intersected area. So i got it working on SRP but when using URP its not working properly. I think its something wrong with ...
0
votes
0
answers
15
views
What's the issue if the render doesn't return anything?
here is my code, and I created a component called showcase and called it from another component, but nothing appears in the window, Can somebody assist me?
https://codesandbox.io/s/dreamy-fast-mpc1fc?...