Skip to content

Instantly share code, notes, and snippets.

View rippedspine's full-sized avatar

Gabriella rippedspine

  • Gothenburg, Sweden
View GitHub Profile
@rippedspine
rippedspine / searchkit-load-more.jsx
Created November 30, 2017 22:05
Proof of concept, load more component with searchkit accessors
import React from 'react'
import _debounce from 'lodash/debounce'
import _get from 'lodash/get'
import {
SearchkitComponent,
PageSizeAccessor
} from 'searchkit'
@rippedspine
rippedspine / searchkit-update-query.jsx
Last active March 11, 2018 00:21
first solution to update searchkit elastic query on prop change
import React from 'react'
import _set from 'lodash/set'
import _get from 'lodash/get'
const searchkit = new SearchkitManager(`/elastic/materials`, {
withCredentials: true
})
class SearchApp extends SearchkitComponent {
{
"name": "video-client",
"version": "0.1.0",
"private": true,
"dependencies": {
"global": "^4.3.2",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"socket.io": "^2.0.3",
"socket.io-p2p": "^2.2.0",