I’m having issues with: import {local} from ‘wixstorage’ . My search input and my repeater results are on separate pages and the code seems to be correct per the training examples (no errors) but I have not been able to pull up results on the separate page. Can someone help me confirm that {local} imports correctly for Editor X?
You have an error in your import statement. It should be:
import {local} from 'wix-storage';
OMG I was missing a space! Thanks for pointing it out. Works now!
import {local} from ‘wix-storage’ ;
import wixLocation from ‘wix-location’ ;
$w.onReady( function (){
});
export function vectorImage1_click(event) {
// Add your code for this event here:
let word = $w( ‘#input1’ ).value;
local.setItem( “key” , word);
wixLocation.to( ‘/home-6’ );
}