back soft

مطالب مرتبط با «how to handle anger» در back soft | نویسنده: استخدام کار

How to handle API resource status in Redux?

Vote count: 0 In my app, I'm storing all my users in the state, like this: Store = { users: [] } I'm trying to figure out what would be the best approach for telling a component if this user is loaded in or not. Right now, my process goes like this: Action called to fetch user > Save empty placeholder user with useame or id > Get actual user from API > Replace placeholder with user by useame or id Now, this works really well. I'm simply replacing already existing objects by id or useame, so I can easily replace it again and again, and React will just update the changed info. My issue is that I have no idea what my approach to this would be in case for some reason a user failed to load, I've ...

ادامه مطلب

How to handle memory in aws cpp sdk?

Vote count: 0 I recently have worked on aws-cpp-sdk from AWS service. But unfortunately I couldn't understand how to handle memory because there aren't enough tutorials or examples on the inteet. What I have tried are as follows.1. built aws-cpp-sdk as a 64bit shared dll for windows x64(exactly win10, vs 2015) using CMake.2. And used that library in win32 console application to test.3. But it's complicated while using their SDK.First attached my code #include "stdafx.h" #include #include #include using namespace Aws; using namespace Aws::S3; using namespace Aws::S3::Model; static const char* ALLOCATION_TAG = "memory"; static const char* S3_BUCKET_NAME = "XXXXXXXX"; static const char* S3_KEY ...

ادامه مطلب