Failed to compare Immutable-js objects

I'm trying to understand why my simple chai (using chai-immutable) test fails. it('should work', () => { var currentState = Immutable.fromJS({ name: 'myName', age: 20, friends:...

Losing properties when using mergeDeep() of Immutable.js

I'm trying to merge 2 immutable maps as below, using mergeDeep() of Immutable.js import { expect } from 'chai'; import Immutable from 'immutable'; describe.only('Test', () => { it('should...

Merge is not defined ImmutableJS

I'm trying to merge my state with some data I have in another module, but the console logs "merge is not defined" it is similar with mergeDeep. Can anyone tell me what I am doing wrong?

immutable js update deep structure

I'm getting an 'invalid keypath' error trying to update my structure: state = fromJS({ cmsData: { "pages": [ { "name": "page1", "content": { "header":...

Merge vs MergeDeep

I've been looking into the performance of some of my reducers and noticed some weird behavior which was contrary to how I though merge and mergeDeep work. I thought that merge and mergeDeep work...

How to do I merge two objects with immutablejs?

I would like to supply one object and create a cloned object from it but overriding with new values without affecting the original object. I wanted to use immutablejs to ensure javascript objects...

Imported scss class names converted to hashes

I have a webpack configuration (based on React Universally). One thing I'm seeing is that class names on imported scss files are converted to hashes. I tried as an alternative to import styles as...

What is the fastest way in ES7 to perform a merge of an object of object of string?

I have an object that contains object that contains string. const userKeyframes = { from: { opacity: 1, }, '40%': { transform: 'skew(20deg)', opacity: 1, }, ...

How to write a deepMerge/deepClone function where the objects are actually copied?

Goal: copy two objects, completely Problem: Using Object.assign doesn't do a deep copy I wrote a deepMerge function following some examples I found here - and it doesn't seem to truly "clone" the...

Merge 2 Immutable JS Ordered Map objects

I am using Immutable JS as a redux store for my React Native App. I have 2 Ordered Map which is a Keyed Collection of Lists. When I try to merge these 2 Ordered Maps, if the keys overlap, then the...

Merging nested ImmutableJS records doesn't gives me undefined, nested entities

I'm new to the immutableJS library and my javascript could be a lot better than it is. I have a react project that's using redux and I've read that best practise is to make you store immutable, so...

immutable JS - immutable deep merge is overriding the object

I am using Immutable JS in my node project to hold the very huge blob of map in the memory. Every key has an object as a value. Example: const obj1 = { "foo.bar": { valid: ['baz'] ...

ImmutableJS Record merge

I have imported an immutable record and wanted to add a new property to that before using it as the default state for my application. However, I cannot add the property at all despite trying...

Apexcharts xaxis formatting fails when using datetime type

I use vue-apexcharts to plot charts in a dashboard. I created a generic file that contains the base options for all charts (to uniformize styling and code reusability) and I extend/override this...

How to create a tree (parent-child) object from Array in Javascript

I have an array like [ "parent1|child1|subChild1", "parent1|child1|subChild2", "parent|child2|subChild1", "parent1|child2|subChild2", "parent2|child1|subChild1", ...

mkdocs meta-tags for opengraph

I would like to have an image preview when sharing links to my mkdocs documentation, hosted and built by RTD. I need to override the HTML header of the site and add an open graph protocol. After...