Skip to content

Instantly share code, notes, and snippets.

View jmlweb's full-sized avatar
:octocat:
Cannot read property of undefined

José Manuel Lucas jmlweb

:octocat:
Cannot read property of undefined
View GitHub Profile
import React, { useEffect, useState, memo } from 'react';
const MyComponent = () => {
const [foo, setFoo] = useState('foo');
useMemo(() => {
// componentWillMount
}, []);
useEffect(() => {
{"errors":[{"error":"WSException : Internal Error: The specified web service as encounter an internal error. [debug: sophia.service.Services.get_use_cases_available : Traceback (most recent call last):\n File \"/opt/sophia/SophiaFramework/src_json_gateway/wsgi_json.py\", line 114, in application\n ws_result = method_instance( **params )\n File \"<decorator-gen-199>\", line 2, in get_use_cases_available\n File \"/opt/sophia/SophiaFramework/src/helper/DecoratorUtils.py\", line 233, in _authenticate_session\n return __authenticate_session( *args, **kwargs )\n File \"/opt/sophia/SophiaFramework/src/helper/DecoratorUtils.py\", line 231, in __authenticate_session\n return func( *args, **kwargs )\n File \"/opt/sophia/SophiaFramework/src/service/Services.py\", line 220, in get_use_cases_available\n vo_person = LazyLoadingFactory.get_from_id( LazyVOPerson, per_id )\n File \"/opt/sophia/SophiaFramework/src/helper/LazyLoadingFactory.py\", line 19, in get_from_id\n return klass.resolve_item_ref( id_t
@jmlweb
jmlweb / ejemplo-simple-de-componente-react-curso-keepcoding.markdown
Created April 7, 2018 19:12
Ejemplo simple de componente React / Curso Keepcoding
@jmlweb
jmlweb / DynamicComponent.js
Created October 11, 2017 07:47
Dynamic Component React
// @flow
import React, { Component } from 'react';
import isSnapshot from '../../utils/isSnapshot';
export default function createDynamicComponent(
importComponent: () => {default: any},
requireComponent: () => {default: any},
) {
type Props = {
[name: string]: any,
@jmlweb
jmlweb / _column.scss
Created September 21, 2016 16:25
BEMIT Responsive Suffixes Column Mixins
@mixin generate-column($width: 1, $suffix: null) {
$gutter: ($width - 1) * $size-gutter;
$width-mod: null;
@if ($width != 1) {
$width-mod: --#{$width};
}
@if ($suffix != null) {
$suffix: \@#{$suffix};
}
.l-column#{$width-mod}#{$suffix} {
swagger: '2.0'
info:
title: Whois API
description: Documentación para la API de la plataforma whois
version: 1.0.0
host: buscadomin.io
schemes:
- http
basePath: /v1
produces:
{
"swagger": "2.0",
"info": {
"version": "0.0.1",
"title": "Blendhub Tool",
"contact": {
"name": "josemanuel@jmlweb.es"
}
},
"host": "localhost:9000",
@jmlweb
jmlweb / validnif.js
Created November 22, 2014 12:08
Directiva Angular para validación de NIF/NIE españoles | Angular directive for spanish NIF/NIE validation
'use strict';
/**
* @ngdoc directive
* @name directive:validnif
* @description
* # validnif
*/
angular.module()
.directive('validnif', function () {
$dropdown-color: $base-font-color;
$dropdown-description-color: lighten($dropdown-color, 40);
$dropdown-border: 1px solid silver;
$dropdown-background: $base-background-color;
$dropdown-background-hover: darken($dropdown-background, 3);
$dropdown-inner-border: 1px solid silver;
$dropdown-height: 40px;
$dropdown-padding: 1em;
$dropdown-distance-from-menu: 50px;
$dropdown-arrow-top-distance: 0;
@jmlweb
jmlweb / boostrap_skeleton.html
Created February 11, 2014 23:32
Boostrap Skeleton
<!DOCTYPE html>
<html lang="es">
<head>
<title>¡Nuestro primer ejemplo con Boostrap!</title>
<meta name="description" content="Página web desarrollada con el objetivo de probar el framework Boostrap">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">