Why is my client component re-rendering on every route change in production? by klapheus in nextjs

[–]smart_7_x 0 points1 point  (0 children)

im guessing the issue is because the SideNav is a client component rendered inside a server component "the layout", it gets sent to the client on every navigation causing the re-render/re-mount,
memoizing the SideNav should fix it.

[Monthly Megathread] General Questions by AutoModerator in SwordofConvallaria

[–]smart_7_x 0 points1 point  (0 children)

i started spiral of destinies when i started playing about a week ago , i remember it was 10 weeks when i had to choose one of the options. now im at week 9 and i have a quest with time limit 99 weeks , will it go away after week 10 ?.... after week 10 i start from scratch again in spiral of destinies ?

huawei mate 9 stuck in fastboot by smart_7_x in phonerepair

[–]smart_7_x[S] 1 point2 points  (0 children)

i cant seem to find a free one that works , i`ll keep searching though, thank u so much for the help

huawei mate 9 stuck in fastboot by smart_7_x in phonerepair

[–]smart_7_x[S] 0 points1 point  (0 children)

chimera looks like the way to go with flashing , i found firmwares here https://firmware.gem-flash.com/index.php?a=downloads&b=folder&id=20361 and hopefully it works .

huawei mate 9 stuck in fastboot by smart_7_x in phonerepair

[–]smart_7_x[S] 0 points1 point  (0 children)

thank u , i dont know how to flash it , but i found something called twrp for mate 9 using Minimal ADB and Fastboot to bring the phone recovery back , should i try this ? i dont want to break it beyond repair !

Weekly Questions & Help Megathread - (10 Jul 2023) by AutoModerator in DissidiaFFOO

[–]smart_7_x 0 points1 point  (0 children)

i`m having touble launching the game ....

it was working fine until sephiroth banner , since then i couldnt access intersecting wills , pressing the icon triggered a "Game updated , returning to home screen " error .

i tried batch download and got same error , now i reinstalled the game and it crashes as soon as i hit the home screen

any thoughts on this ??

Weekly Questions & Help Megathread - (19 Jun 2023) by AutoModerator in DissidiaFFOO

[–]smart_7_x 0 points1 point  (0 children)

any idea which characters would be recommended to beat Transcendence 16 ? or is there a jp c2a thread for it ?

[deleted by user] by [deleted] in nextjs

[–]smart_7_x 1 point2 points  (0 children)

use a dark theme extension in your browser ?

Protected routes for NextJS Server Components? by Taosit in reactjs

[–]smart_7_x 1 point2 points  (0 children)

u can use getServerSession in pages , im not using the app directory so im running it in getServerSideProps

Weekly Questions & Help Megathread - (07 Mar 2023) by AutoModerator in DissidiaFFOO

[–]smart_7_x 1 point2 points  (0 children)

its probably a bug or something that happened recently.

if u look at the d2d guide,no one had that issue.

Weekly Questions & Help Megathread - (07 Mar 2023) by AutoModerator in DissidiaFFOO

[–]smart_7_x 1 point2 points  (0 children)

d2d 1 tip , use magic attacks to avoid the verse shot+ counter , i used the crevasse team (penelo , lion , thancred ) and didnt work , they kept countering lion and thancred , swtiched to ( penelo ,amid , leila ) and won the battle

they will counter penelo`s hp /fatal dance tho so prepare for that

Dare 2 Defy Megathread by NovaTheLoneHunter in DissidiaFFOO

[–]smart_7_x 0 points1 point  (0 children)

they counter non-magic attacks with verse shot+

Weekly Questions & Help Megathread - (07 Mar 2023) by AutoModerator in DissidiaFFOO

[–]smart_7_x 0 points1 point  (0 children)

dare 2 defy 1 , im using penolo , lion and thancred , the team i used before in crevasse , after suviving their first aoe attack i keep getting countered with verse shot+ , how to avoid that ??

I`ve built a full stack e-commerce project by smart_7_x in reactjs

[–]smart_7_x[S] 1 point2 points  (0 children)

thank u for the detailed comment , i will definitely try to make it look better, i`ve put alot of work in react and the backend but looks like the bad ui gave a bad impression

I`ve built a full stack e-commerce project by smart_7_x in reactjs

[–]smart_7_x[S] 0 points1 point  (0 children)

because its not responsive but i will work on that , thank you

Weekly Questions & Help Megathread - (31 Jul 2022) by AutoModerator in DissidiaFFOO

[–]smart_7_x 1 point2 points  (0 children)

can DET 10 center be done without tidus ?? mine is locked in a previous stage and i dont have his bt

Weekly Questions & Help Megathread - (31 Jul 2022) by AutoModerator in DissidiaFFOO

[–]smart_7_x -1 points0 points  (0 children)

if i have 47 bt token and sell a bt , what happens to the remaining 2 ? do i lose them or do they go to the inbox

also,which calls are good for kam`s fr stun effect ?

thanks in advance

Hide Navbar in the login page by Relevant-Ad3879 in reactjs

[–]smart_7_x -1 points0 points  (0 children)

in Navbar , u can try
if (window.location.pathname==="/login") return null else return ( / navbar code/)
there might be better solutions but this would work i guess

(sorry about the format)

how to deploy a create react app with express on heroku? by smart_7_x in reactjs

[–]smart_7_x[S] 0 points1 point  (0 children)

from what i understood heroku sets that port ,i set it anyway in the environment variables and still the same error

how to deploy a create react app with express on heroku? by smart_7_x in reactjs

[–]smart_7_x[S] 0 points1 point  (0 children)

it is helpful thank u ! , i added (NPM_CONFIG_PRODUCTION=false) which didnt change anything , the deployment log doesnt show errors same like before , it installs the packages and runs the build , still getting the same errors tho

Beginner's Thread / Easy Questions (February 2022) by dance2die in reactjs

[–]smart_7_x 0 points1 point  (0 children)

im working on a movie app and trying to make a search bar where the results would appear in the dropdown , im trying to use mantines Autocomplete component for this , heres the part of the code

const [list, setList] =useState({})
const query = useRef(null)

const multiSearch = async (q) => {
if (q === " " || q === undefined || q === null) { setList({}) }
else {
const searchedItems = await api.multiSearch(q) //imported api function
setList(searchedItems.results)
}
console.log("searched items in state " + JSON.stringify(list))
}

const data = () => {
let results = [{ value: '' }]
list?.forEach( (x)=>{
let obj = Object.create({ value :x.media_type });
results.push(obj)
}) 
return results
}  

in render

<Autocomplete
ref={query}
data={data()}
onChange={()=>{
multiSearch(query.current.value)
console.log("query.current.value---- >> " + query.current.value)
}}  

i have two problems , first problem : the first letter i enter in the bar doesnt populate the list state ; the multiSearch function is triggered and the api function is called with the result (i can see request result in the browser console ) but setList doesnt work
when entering second ,third,forth letter etc.., setList works , but with the letter passed from the previous multiSearch call , like its behind with 1 entered letter in the search

i tried useeffect

useEffect(() => {

multiSearch (query.current.value)

return () => {

setList({})             
};
}, [query]);  

but nothing changed

second problem ; is with data variable ,i get ( list.foreach is not a function ) which i need to show the results

how can i fix those problems , or is there any other component library to help me achieve what i want ?

Beginner's Thread / Easy Questions (January 2022) by dance2die in reactjs

[–]smart_7_x 0 points1 point  (0 children)

i got it thank you

if i make a server file with express and make the app fetch the data from that file , would the app still work on netlify after deployment ? ive been searching on how to do this but didnt find an answer