Skip to content

Instantly share code, notes, and snippets.

View iamdanthedev's full-sized avatar
😃

Dan The Dev iamdanthedev

😃
  • Bonliva AB
  • Stockholm/Kiev
View GitHub Profile
@iamdanthedev
iamdanthedev / Field.tsx
Last active November 7, 2017 12:53
Typesafe redux-form field with custom props
/**
* Redux-form Field with custom property `nutrient` passed in directly and not via props
* Type safe and no typescript erros
*/
import { Field, WrappedFieldProps } from 'redux-form';
type ExtrasProps = { nutrient: Nutrient };
const ValueField = Field as new () => Field<ExtraProps>;
=erl_crash_dump:0.3
Sat Aug 12 17:18:09 2017
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,couch,{{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,couch_peruser,{badarg,[{e
System version: Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:3:3] [async-threads:16] [kernel-poll:true]
Compiled: Mon Apr 24 06:20:48 2017
Taints: snappy,khash,crypto
Atoms: 13216
=memory
total: 103938648
processes: 3682736
=erl_crash_dump:0.3
Sat Aug 12 17:18:09 2017
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,couch,{{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,couch_peruser,{badarg,[{e
System version: Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:3:3] [async-threads:16] [kernel-poll:true]
Compiled: Mon Apr 24 06:20:48 2017
Taints: snappy,khash,crypto
Atoms: 13216
=memory
total: 103938648
processes: 3682736
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under