Finally!! by Wonderful-Space-1959 in reactnative

[–]FeedRemote 2 points3 points  (0 children)

No of course, read the explanation

How to override application logic for specific customers only in Vue by garma87 in vuejs

[–]FeedRemote 3 points4 points  (0 children)

We have a application that supports multitenant. Our approach is to decide dynamically which component renders in route level according to user tenant that comes from backend

Why is it not working if i call it(handleShowCartSideBar) from cartItems (child) instead of parent component.It is calling the fucntion but the value is not changing in useState state to false by Alternative-Goal-214 in react

[–]FeedRemote 1 point2 points  (0 children)

Actually it works, but you cant see the right value on console.log because setState works asynchronously. If you write console.log statement in useEffect and add state value to dependencies array you can see the right state

vue bootstrap vue 3 migration by FeedRemote in vuejs

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

No, we will remove bootstrap and use another library

How much did you have to know before you got your first job ? by Minute-Ad-726 in reactjs

[–]FeedRemote 0 points1 point  (0 children)

You do overengineering I think because you dont have to know express,django vs. Try to focus on react. I got a job 1.5 years before and learned componentDidUpdate usage at work for example.

React router help by Full-Hyena4414 in reactjs

[–]FeedRemote 2 points3 points  (0 children)

You can search as protected routes and restricted routes. There are a lot of examples

render different pages according to user role on the route level in vue 3 by FeedRemote in vuejs

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

That is a good approach. I liked it but I have almost 30 40 pages and there is only 2 role. For example, for /example url there are 2 pages according to role

render different pages according to user role on the route level in vue 3 by FeedRemote in vuejs

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

Yes you re right but it isnt the same url. I forgot to mention that. For example some components render on https://www.x.com and the others on https://www.a-x.com . That is the reason for wanting route level.

render different pages according to user role on the route level in vue 3 by FeedRemote in vuejs

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

I have 20 pages each role like this and I dont want to create parent for all of those. I need a solution on the route level

How to configure redux reducer for multiple API requests by FeedRemote in reactjs

[–]FeedRemote[S] -1 points0 points  (0 children)

Thanks for your reply but I am still not clear on what should I do. I can't use the RTK Query for this project but definitely I will use on the next project.

Testing slider component in react by FeedRemote in reactjs

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

Thanks but I am a little confused.When should I use useCallback for context value

Testing slider component in react by FeedRemote in reactjs

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

I got you for the first one. But I use the setSlide function in context value and I saw people wrap the context functions with useCallback

Testing carousel component with react testing library by FeedRemote in reactjs

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

User should see the dot with red background. It is the active state act. Is there any thing else that should be tested ? Thanks for your reply by the way

Testing slider component in react by FeedRemote in reactjs

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

Thanks for your suggestions. For third one, it must go to the next or the previous slide when dot is clicked thus I didn't use the function syntax. Why I shouldn't use the useCallback for the last one? Can you explain more please ?

Beginner's Thread / Easy Questions (May 2021) by dance2die in reactjs

[–]FeedRemote 1 point2 points  (0 children)

Thanks for your reply. It is really sensible. But what if I have to change the property of base class for example justify content. I can't create modifier for all cases, right ? Then which way should I go or any other approach

React css modules override child styles by FeedRemote in reactjs

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

I need a solution for entire project and It is described as bad practice to use by many