-
Should this be?
```
export interface RedditPostsArray {
[index: string]: RedditPosts;
}
export const postsByReddit: ActionReducer = (state: RedditPostsArray = {}, action: Action) => {
switch…
-
```ts
case LOAD_BOOKS:
return {
...state,
entities: array2entity(action.books, state)
};
```
-
https://github.com/fac-12/FAC-Events-Search/blob/master/client/src/reducers/authReducer.js#L3
i find its always helpful to have values as the initial state so that you can easily see what the reduc…
-
Reducer should be split up. Create one for each area of responsibility:
* Sockets
* L.FM API
* Hosts, listeners, tracks.
Create inheriting action types for the different reducers. This type w…
-
While SASS is interpreing this as it is:
```
$some: 22;
width: calc(100% - 10px + 20px + $some);
```
We can reduce the expression if they are the same unit to:
```
width: calc(100% + 10px + 22);
``…
-
Mario:
Then does this means adding chrono? Trying of use u64 instead internally is a footgun similar to how bool in SQLite is 1/0 (ie: Lets add proper date types, it also matters to match sQL spec)
I…
-
![WhatsApp Image 2024-04-22 at 8 15 41 PM](https://github.com/hiteshchoudhary/chai-aur-react/assets/114225968/f4d24887-819e-42e0-acf3-4e7954919b3a)
-
### Description
I've hit a weird issue with the UI not updating. I am using a `NavigationSplitView` and the right and middle column share the same scoped store/state. A form/sheet is presented from t…
-
API has an endpoint that provides a list of items that we need. E.g. we have a map application that shows a lot of structures for a specific scenario id. We then want to use deletion, updating, select…
-
So, I've been debugging an issue all morning, and finally _think_ I have a grasp of what's happening. It's not a fun one, so be warned.
**The short version is:**
I think when you assign the result…