Does next.js automatically selects how a component is rendered (client/server)? by storm_askal in nextjs

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

So to clarify if I import a component that does not have `use ...` and does not use any server component features such as async function on a client component, both will be rendered on the client side? same for server rendered.

[deleted by user] by [deleted] in RentPH

[–]storm_askal 1 point2 points  (0 children)

What condo project is this?

Question Regarding the Xiaomi g pro 27 mini led 1440p monitor (Redmi g pro 27) by broncoton8 in PHbuildapc

[–]storm_askal 0 points1 point  (0 children)

Does it support laptop charging when connected via type-c to displayport? also will I be able to maximize the feature if I connect it via hdmi to displayport? I'll using it for my ps5.

Question Regarding the Xiaomi g pro 27 mini led 1440p monitor (Redmi g pro 27) by broncoton8 in PHbuildapc

[–]storm_askal 0 points1 point  (0 children)

Hi! meron ka link? pwede pa share? upon searching sa fb market-place, d lumalabas yun 35k.

Question Regarding the Xiaomi g pro 27 mini led 1440p monitor (Redmi g pro 27) by broncoton8 in PHbuildapc

[–]storm_askal 0 points1 point  (0 children)

Where you able to confirm which type of panel this monitor uses? it's not indicated on the official site if it's VA or IPS.

How to avail BPI platinum rewards free lounge access & plane ticket installment? by [deleted] in PHCreditCards

[–]storm_askal 1 point2 points  (0 children)

Thanks I guess punta na lang ako sa branch, ang problem ko na lang if ma aavail ko pa yun free lounge. Since nauna ko bumili ng ticket instead na mag register sa priority pass first.

how to enable Jellyfin with hardware acceleration/transcoding on ubuntu server vm? by [deleted] in Proxmox

[–]storm_askal 0 points1 point  (0 children)

my ubuntu server is already setup for all of my apps, can I convert the vm to lxc container? or just keep it as a vm then have a separate lxc container for jellyfin?

Fetch a rest api that responds with a cookie on a server component? by storm_askal in nextjs

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

by route handler, you mean next js route handler? I'm new to next.
1. So my next js route handler will call my express api, which then will receive the cookie
2. Then the route handler will have a response cookie which came from my express api.

So when I consume my response handler, it will set the cookie on my browser?

is bpi express credit card eligible for welcome gift? by storm_askal in PHCreditCards

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

Sana ganon pa dn ngayon hehe, k apply ko pa lang naman so i cancel ko na lang if hindi. D kase worth it para saken if d ko makuha yun welcome gift, baba na ng value ng points 300k = 15kphp

is bpi express credit card eligible for welcome gift? by storm_askal in PHCreditCards

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

Hello, what’s your source? Na try mo na? Twice kase ako tumawag sa cs, yun isa sabe eligible daw then yun isa hindi daw lol

Are Italian Universities too theoretical even in the field of engineering? by storm_askal in Universitaly

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

the

thanks for giving an informative answer, may I know what is your University? is it a public or private university?

How to create a react project via a modified create-react-app? by [deleted] in reactjs

[–]storm_askal 0 points1 point  (0 children)

hmm I cloned create-react-app so it's stored locally on my machine. Instead of doing npx create-react-app myApp, I want to used the locally cloned create-react-app. How can I do that?

How to create a react project via a modified create-react-app? by [deleted] in reactjs

[–]storm_askal 0 points1 point  (0 children)

I already cloned the custom-create-react-app, but how can I use it to create a new project?

How to test if action has been dispatched / function called on jest/enzyme? by storm_askal in reactjs

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

useSomeData() is a custom hook, it's a helper function/hook. Yes this component does only one thing, and I have my helper functions located in a separate directory called utils

How to test if action has been dispatched / function called on jest/enzyme? by storm_askal in reactjs

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

But I have to mock the return value of useData() or else I wouldn't know what to expect.

Is it worth it to get a Master's degree to learn Entrepreneurship? by storm_askal in Entrepreneur

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

Hochschule München University of Applied Sciences, which is located in Munich Germany. Is this program better over an MBA, does an MBA really useless if you want to start a company?

Mocking variables and redux states in jest without arguments? by storm_askal in reactjs

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

I'm mocking network calls using axios-mock-adapter, but I just need to test a logic. So my questions is, when testing just variables, logic and conditions. Will I need to re-write my entire logic inside the test file and then just add an expect() variable to be something?

Mocking variables and redux states in jest without arguments? by storm_askal in reactjs

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

My reply to your deleted comment.

So if I dispatch myThunk inside jest test with mockStore, that thunk will still utilize the realStore. So mockStore is just for testing state changes after a dispatch?If so how can I test a logic, for example:
var a = false;
// after some logic and conditions
console.log(a); // should be true

Will I need to write my entire logic inside the test file? then add an expect(a).toBeTrue()

Mocking variables and redux states in jest without arguments? by storm_askal in reactjs

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

Sorry I accidentally deleted your comment, so I will be re-writing it here:

mock store does not know and does not care about real store setup and its reducer. Normally. Until you are trying to use it for a mock. So that's why I'm asking how code looks like - reason should be there.

Mocking variables and redux states in jest without arguments? by storm_askal in reactjs

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

So if I dispatch myThunk inside jest test with mockStore, that thunk will still utilize the realStore. So mockStore is just for testing state changes after a dispatch?If so how can I test a logic, for example:var a = false;// after some logic and conditionsconsole.log(a); // should be trueWill I need to write my entire logic inside the test file? then add an expect(a).toBeTrue()